mirror of
https://github.com/davidhalter/jedi.git
synced 2026-02-21 05:38:26 +08:00
python 2 compatibility (also with the new travis build)
This commit is contained in:
@@ -408,6 +408,7 @@ class _Importer(object):
|
||||
path += '/__init__.py'
|
||||
with open(path, 'rb') as f:
|
||||
source = f.read()
|
||||
source = source.replace(b'\n', b'\r\n')
|
||||
else:
|
||||
source = current_namespace[0].read()
|
||||
current_namespace[0].close()
|
||||
|
||||
Reference in New Issue
Block a user