[Python-checkins] r58484 - sandbox/trunk/import_in_py/Py3K/_importlib.py
brett.cannon
python-checkins at python.org
Mon Oct 15 22:05:55 CEST 2007
Author: brett.cannon
Date: Mon Oct 15 22:05:54 2007
New Revision: 58484
Modified:
sandbox/trunk/import_in_py/Py3K/_importlib.py
Log:
Add a comment about the assumption made in DinkyFile for decoding text.
Modified: sandbox/trunk/import_in_py/Py3K/_importlib.py
==============================================================================
--- sandbox/trunk/import_in_py/Py3K/_importlib.py (original)
+++ sandbox/trunk/import_in_py/Py3K/_importlib.py Mon Oct 15 22:05:54 2007
@@ -168,6 +168,10 @@
if self.binary:
return read_out
else:
+ # Since codecs requires the ability to import from the encodings
+ # package, bytes.decode() cannot be used. This forces the
+ # assumption that all files imported before open() is set are
+ # encoded in ASCII.
return str(read_out)
def write(self, data):
More information about the Python-checkins
mailing list