From: Tim Peters Date: Sun, 8 Aug 2004 16:37:37 +0000 (+0000) Subject: Renamed locals to better reflect their meanings. X-Git-Tag: v2.4a3~322 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2a5f656d0c93df175cf1ca2fe991927d3fd4a053;p=python Renamed locals to better reflect their meanings. --- diff --git a/Lib/test/test_compiler.py b/Lib/test/test_compiler.py index f11bad6c51..0e6d1a910d 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")