[Python-checkins] r68761 - python/branches/py3k/Lib/importlib/_bootstrap.py

brett.cannon python-checkins at python.org
Mon Jan 19 07:56:16 CET 2009


Author: brett.cannon
Date: Mon Jan 19 07:56:16 2009
New Revision: 68761
Log:
Fix a typo in some code that is not tested or supported yet.
Closes issue 4993. Thanks Antoine Pitrou for the catch.
Modified:
 python/branches/py3k/Lib/importlib/_bootstrap.py
Modified: python/branches/py3k/Lib/importlib/_bootstrap.py
==============================================================================
--- python/branches/py3k/Lib/importlib/_bootstrap.py	(original)
+++ python/branches/py3k/Lib/importlib/_bootstrap.py	Mon Jan 19 07:56:16 2009
@@ -431,7 +431,7 @@
 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.


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /