mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-29 00:16:52 +08:00
Merge pull request #799 from Cologler/master
fix source code read issue.
This commit is contained in:
@@ -105,7 +105,7 @@ class Script(object):
|
||||
|
||||
if source is None:
|
||||
# TODO add a better warning than the traceback!
|
||||
with open(path) as f:
|
||||
with open(path, 'rb') as f:
|
||||
source = f.read()
|
||||
|
||||
self._source = common.source_to_unicode(source, encoding)
|
||||
|
||||
Reference in New Issue
Block a user