1
0
forked from VimPlug/jedi

Add a print_to_stderr function in compatibility

This commit is contained in:
Dave Halter
2017-12-29 01:26:15 +01:00
parent 05b2906dcc
commit 6e69326aa9

View File

@@ -291,6 +291,13 @@ def no_unicode_pprint(dct):
print(re.sub("u'", "'", s))
def print_to_stderr(string):
if is_py3:
eval("print(string, file=sys.stderr)")
else:
print >> sys.stderr, string
def utf8_repr(func):
"""
``__repr__`` methods in Python 2 don't allow unicode objects to be