mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 06:24:27 +08:00
Small mistake when opening a file
This commit is contained in:
@@ -363,7 +363,7 @@ class Evaluator(object):
|
|||||||
def parse_and_get_code(self, code, path, **kwargs):
|
def parse_and_get_code(self, code, path, **kwargs):
|
||||||
if self.allow_different_encoding:
|
if self.allow_different_encoding:
|
||||||
if code is None:
|
if code is None:
|
||||||
with open('rb') as f:
|
with open(path, 'rb') as f:
|
||||||
code = f.read()
|
code = f.read()
|
||||||
code = python_bytes_to_unicode(code, errors='replace')
|
code = python_bytes_to_unicode(code, errors='replace')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user