1
0
forked from VimPlug/jedi

print_to_stderr needs to be used with one argument

See #1010.
This commit is contained in:
Dave Halter
2018-02-05 19:18:54 +01:00
parent ac597815d7
commit 92c76537d6

View File

@@ -152,7 +152,7 @@ def load_module(evaluator, path=None, name=None, sys_path=None):
# Since __import__ pretty much makes code execution possible, just
# catch any error here and print it.
import traceback
print_to_stderr("Cannot import:\n", traceback.format_exc())
print_to_stderr("Cannot import:\n%s" % traceback.format_exc())
return None
finally:
sys.path = temp