[Zope-Checkins] CVS: Zope/inst - walkandscrub.py:1.4.16.1

Andreas Jung andreas@digicool.com
Mon, 4 Mar 2002 10:08:49 -0500


Update of /cvs-repository/Zope/inst
In directory cvs.zope.org:/tmp/cvs-serv9220/inst

Modified Files:
      Tag: Zope-2_5-branch
	walkandscrub.py 
Log Message:
Collector #259: not all .pyc|.pyo files were deleted 


=== Zope/inst/walkandscrub.py 1.4 => 1.4.16.1 ===
 
 def scrub(list, dirname, filelist):
+
     for name in filelist:
         if name in EXCLUDED_NAMES:
             continue
@@ -40,7 +41,6 @@
         if ext == '.pyo' or ext == '.pyc':
             full = os.path.join(dirname, name)
             os.unlink(full)
-            filelist.remove(name)
             if DEBUG: print full
             
 if __name__ == '__main__':