From: Brett Cannon Date: Sat, 15 May 2010 22:51:45 +0000 (+0000) Subject: Fix a comment to state the right thing. X-Git-Tag: v3.2a1~794 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e88e6ce8b7a1d2a65fb5762baebaba05e68ddfe4;p=python Fix a comment to state the right thing. --- diff --git a/Lib/test/test_import.py b/Lib/test/test_import.py index 2ea673637a..bf689aea4c 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)