mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -431,7 +431,7 @@ class _PyFileLoader(object):
|
|||
if source_path is None:
|
||||
return None
|
||||
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)
|
||||
# XXX Will fail when passed to compile() if the encoding is
|
||||
# anything other than UTF-8.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue