summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2009-01-19 06:56:16 (GMT)
committerBrett Cannon <bcannon@gmail.com>2009-01-19 06:56:16 (GMT)
commitb4a1b8c5419073b202f8481d38364390f6926d3a (patch)
treea9afe9f979ffcf0282fa1912081540d88146315f /Lib
parentf99d243132fa25c050fad4e70f2da411cc6b4e9c (diff)
downloadcpython-b4a1b8c5419073b202f8481d38364390f6926d3a.zip
cpython-b4a1b8c5419073b202f8481d38364390f6926d3a.tar.gz
cpython-b4a1b8c5419073b202f8481d38364390f6926d3a.tar.bz2
Fix a typo in some code that is not tested or supported yet.
Closes issue 4993. Thanks Antoine Pitrou for the catch.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/importlib/_bootstrap.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/importlib/_bootstrap.py b/Lib/importlib/_bootstrap.py
index 68f0017..196c6d8 100644
--- a/Lib/importlib/_bootstrap.py
+++ b/Lib/importlib/_bootstrap.py
@@ -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.