[Python-checkins] r81218 - python/branches/py3k/Lib/test/test_import.py
brett.cannon
python-checkins at python.org
Sun May 16 00:51:45 CEST 2010
Author: brett.cannon
Date: Sun May 16 00:51:45 2010
New Revision: 81218
Log:
Fix a comment to state the right thing.
Modified:
python/branches/py3k/Lib/test/test_import.py
Modified: python/branches/py3k/Lib/test/test_import.py
==============================================================================
--- python/branches/py3k/Lib/test/test_import.py (original)
+++ python/branches/py3k/Lib/test/test_import.py Sun May 16 00:51:45 2010
@@ -153,10 +153,9 @@
f.write('"",\n')
f.write(']')
- # Compile & remove .py file, we only need .pyc (or .pyo), but that
- # must be relocated to the PEP 3147 bytecode-only location.
- with open(filename, 'r') as f:
- py_compile.compile(filename)
+ # Compile & remove .py file; we only need .pyc (or .pyo).
+ # Bytecode must be relocated from the PEP 3147 bytecode-only location.
+ py_compile.compile(filename)
unlink(filename)
make_legacy_pyc(filename)
More information about the Python-checkins
mailing list