1
0
forked from VimPlug/jedi

python 2 compatibility (also with the new travis build)

This commit is contained in:
Dave Halter
2014-05-04 11:50:13 +02:00
parent 02b98ad4e4
commit ef62904af3
3 changed files with 11 additions and 5 deletions

View File

@@ -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()