summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2004-08-08 16:37:37 (GMT)
committerTim Peters <tim.peters@gmail.com>2004-08-08 16:37:37 (GMT)
commit2a5f656d0c93df175cf1ca2fe991927d3fd4a053 (patch)
treef32e83e3185794005e27165adcbb39b714601e66 /Lib
parentb6ecc165f289b488f729bc23fb95c75cc6a36612 (diff)
downloadcpython-2a5f656d0c93df175cf1ca2fe991927d3fd4a053.zip
cpython-2a5f656d0c93df175cf1ca2fe991927d3fd4a053.tar.gz
cpython-2a5f656d0c93df175cf1ca2fe991927d3fd4a053.tar.bz2
Renamed locals to better reflect their meanings.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_compiler.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/Lib/test/test_compiler.py b/Lib/test/test_compiler.py
index f11bad6..0e6d1a9 100644
--- a/Lib/test/test_compiler.py
+++ b/Lib/test/test_compiler.py
@@ -15,16 +15,16 @@ class CompilerTest(unittest.TestCase):
testdir = os.path.dirname(test.test_support.__file__)
for dir in [libdir, testdir]:
- for path in os.listdir(dir):
- if not path.endswith(".py"):
+ for basename in os.listdir(dir):
+ if not basename.endswith(".py"):
continue
- fpath = os.path.join(dir, path)
+ path = os.path.join(dir, basename)
if test.test_support.verbose:
- print "compiling", fpath
- f = open(fpath)
+ print "compiling", path
+ f = open(path)
buf = f.read()
f.close()
- compiler.compile(buf, path, "exec")
+ compiler.compile(buf, basename, "exec")
def test_main():
test.test_support.requires("compiler")