]> granicus.if.org Git - python/commitdiff
Fix a typo in some code that is not tested or supported yet.
authorBrett Cannon <bcannon@gmail.com>
Mon, 19 Jan 2009 06:56:16 +0000 (06:56 +0000)
committerBrett Cannon <bcannon@gmail.com>
Mon, 19 Jan 2009 06:56:16 +0000 (06:56 +0000)
Closes issue 4993. Thanks Antoine Pitrou for the catch.

Lib/importlib/_bootstrap.py

index 68f00178990daecef05ecd679efa5309e8366004..196c6d8e8f731c054bcce1d8e6685d8b08864fa7 100644 (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.