1
0
forked from VimPlug/jedi

Refactor splitlines -> split_lines.

This commit is contained in:
Dave Halter
2017-08-15 19:55:50 +02:00
parent ff001e07a6
commit f9e31dc941
6 changed files with 14 additions and 13 deletions

View File

@@ -548,7 +548,7 @@ class ModuleContext(use_metaclass(CachedMetaClass, context.TreeContext)):
init_path = self.py__file__()
if os.path.basename(init_path) == '__init__.py':
with open(init_path, 'rb') as f:
content = source_to_unicode(f.read())
content = source_to_unicode(f.read(), errors='replace')
# these are strings that need to be used for namespace packages,
# the first one is ``pkgutil``, the second ``pkg_resources``.
options = ('declare_namespace(__name__)', 'extend_path(__path__')