Mailing List Archive

python/dist/src/Mac/scripts zappycfiles.py,1.2,1.3
Update of /cvsroot/python/python/dist/src/Mac/scripts
In directory usw-pr-cvs1:/tmp/cvs-serv5241

Modified Files:
zappycfiles.py
Log Message:
Remove .pyo files too.


Index: zappycfiles.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/scripts/zappycfiles.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** zappycfiles.py 9 Aug 2002 10:17:28 -0000 1.2
--- zappycfiles.py 6 Sep 2002 20:23:09 -0000 1.3
***************
*** 1,4 ****
! """Recursively zap all .pyc files"""
import os
import sys
--- 1,4 ----
! """Recursively zap all .pyc and .pyo files"""
import os
import sys
***************
*** 28,32 ****
def walker(dummy, top, names):
for name in names:
! if name[-4:] == '.pyc':
path = os.path.join(top, name)
print 'Zapping', path
--- 28,32 ----
def walker(dummy, top, names):
for name in names:
! if name[-4:] in ('.pyc', '.pyo'):
path = os.path.join(top, name)
print 'Zapping', path