Commit b4a1b8c5 authored by Brett Cannon's avatar Brett Cannon

Fix a typo in some code that is not tested or supported yet.

Closes issue 4993. Thanks Antoine Pitrou for the catch.
parent f99d2431
......@@ -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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment