[Python-checkins] python/dist/src/Lib/test test_compiler.py, 1.3,
1.4
tim_one at users.sourceforge.net
tim_one at users.sourceforge.net
Sun Aug 8 18:37:40 CEST 2004
Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12855/Lib/test
Modified Files:
test_compiler.py
Log Message:
Renamed locals to better reflect their meanings.
Index: test_compiler.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_compiler.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** test_compiler.py 8 Aug 2004 16:32:54 -0000 1.3
--- test_compiler.py 8 Aug 2004 16:37:37 -0000 1.4
***************
*** 16,29 ****
for dir in [libdir, testdir]:
! for path in os.listdir(dir):
! if not path.endswith(".py"):
continue
! fpath = os.path.join(dir, path)
if test.test_support.verbose:
! print "compiling", fpath
! f = open(fpath)
buf = f.read()
f.close()
! compiler.compile(buf, path, "exec")
def test_main():
--- 16,29 ----
for dir in [libdir, testdir]:
! for basename in os.listdir(dir):
! if not basename.endswith(".py"):
continue
! path = os.path.join(dir, basename)
if test.test_support.verbose:
! print "compiling", path
! f = open(path)
buf = f.read()
f.close()
! compiler.compile(buf, basename, "exec")
def test_main():
More information about the Python-checkins
mailing list