From: Brett Cannon Date: Mon, 19 Jan 2009 06:56:16 +0000 (+0000) Subject: Fix a typo in some code that is not tested or supported yet. X-Git-Tag: v3.1a1~468 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b4a1b8c5419073b202f8481d38364390f6926d3a;p=thirdparty%2FPython%2Fcpython.git Fix a typo in some code that is not tested or supported yet. Closes issue 4993. Thanks Antoine Pitrou for the catch. --- diff --git a/Lib/importlib/_bootstrap.py b/Lib/importlib/_bootstrap.py index 68f00178990d..196c6d8e8f73 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.