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:
Brett Cannon 2009-01-19 06:56:16 +00:00
parent f99d243132
commit b4a1b8c541
1 changed files with 1 additions and 1 deletions

View File

@ -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.