Fix a typo in some code that is not tested or supported yet.
Closes issue 4993. Thanks Antoine Pitrou for the catch.
This commit is contained in:
parent
f99d243132
commit
b4a1b8c541
|
@ -431,7 +431,7 @@ class _PyFileLoader(object):
|
||||||
if source_path is None:
|
if source_path is None:
|
||||||
return None
|
return None
|
||||||
import tokenize
|
import tokenize
|
||||||
with closing(_fileio_FileIO(source_path, 'r')) as file:
|
with closing(_fileio._FileIO(source_path, 'r')) as file:
|
||||||
encoding, lines = tokenize.detect_encoding(file.readline)
|
encoding, lines = tokenize.detect_encoding(file.readline)
|
||||||
# XXX Will fail when passed to compile() if the encoding is
|
# XXX Will fail when passed to compile() if the encoding is
|
||||||
# anything other than UTF-8.
|
# anything other than UTF-8.
|
||||||
|
|
Loading…
Reference in New Issue