diff options
author | Brett Cannon <bcannon@gmail.com> | 2010-05-15 22:51:45 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2010-05-15 22:51:45 (GMT) |
commit | e88e6ce8b7a1d2a65fb5762baebaba05e68ddfe4 (patch) | |
tree | f7329a44f74d2cf76167e80cebf5e408effccb04 /Lib/test/test_import.py | |
parent | 26486ea29ff8c15e8d70ee296f6dc3876f65b26c (diff) | |
download | cpython-e88e6ce8b7a1d2a65fb5762baebaba05e68ddfe4.zip cpython-e88e6ce8b7a1d2a65fb5762baebaba05e68ddfe4.tar.gz cpython-e88e6ce8b7a1d2a65fb5762baebaba05e68ddfe4.tar.bz2 |
Fix a comment to state the right thing.
Diffstat (limited to 'Lib/test/test_import.py')
-rw-r--r-- | Lib/test/test_import.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Lib/test/test_import.py b/Lib/test/test_import.py index 2ea6736..bf689ae 100644 --- a/Lib/test/test_import.py +++ b/Lib/test/test_import.py @@ -153,10 +153,9 @@ class ImportTests(unittest.TestCase): 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) |