From 2a5f656d0c93df175cf1ca2fe991927d3fd4a053 Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Sun, 8 Aug 2004 16:37:37 +0000 Subject: Renamed locals to better reflect their meanings. --- Lib/test/test_compiler.py | 12 ++++++------ 1 file 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") -- cgit v0.12