From e88e6ce8b7a1d2a65fb5762baebaba05e68ddfe4 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Sat, 15 May 2010 22:51:45 +0000 Subject: [PATCH] Fix a comment to state the right thing. --- Lib/test/test_import.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Lib/test/test_import.py b/Lib/test/test_import.py index 2ea673637a8..bf689aea4ce 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)