Skip to content

Commit 46d23f8

Browse files
open file with encoding
1 parent 7b767e4 commit 46d23f8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎pythonFiles/jedi/api/__init__.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def __init__(self, source=None, line=None, column=None, path=None,
8787
self.path = None if path is None else os.path.abspath(path)
8888

8989
if source is None:
90-
with open(path) as f:
90+
with open(path, encoding=encoding) as f:
9191
source = f.read()
9292

9393
self.source = common.source_to_unicode(source, encoding)

0 commit comments

Comments
 (0)