From b4a1b8c5419073b202f8481d38364390f6926d3a Mon Sep 17 00:00:00 2001 From: Brett Cannon <bcannon@gmail.com> Date: Mon, 19 Jan 2009 06:56:16 +0000 Subject: [PATCH] Fix a typo in some code that is not tested or supported yet. Closes issue 4993. Thanks Antoine Pitrou for the catch. --- Lib/importlib/_bootstrap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/importlib/_bootstrap.py b/Lib/importlib/_bootstrap.py index 68f00178990..196c6d8e8f7 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. -- 2.30.9