1
0
forked from VimPlug/jedi

print_to_stderr can be replaced with a proper future import

This commit is contained in:
Dave Halter
2019-04-03 09:36:04 +02:00
parent c997d568f3
commit c0f5c5f24c
4 changed files with 8 additions and 14 deletions
-7
View File
@@ -165,7 +165,6 @@ def find_module_pre_py3(string, path=None, full_name=None, is_global_search=True
loader = pkgutil.get_importer(item)
if loader:
loader = loader.find_module(string)
print_to_stderr('lalala')
return _from_loader(loader, string)
raise ImportError("No module named {}".format(string))
@@ -387,12 +386,6 @@ def no_unicode_pprint(dct):
print(re.sub("u'", "'", s))
def print_to_stderr(*args):
if is_py3:
print(*args, file=sys.stderr)
sys.stderr.flush()
def utf8_repr(func):
"""
``__repr__`` methods in Python 2 don't allow unicode objects to be