From 3337ea731bab24110e82e6b9c59f85c8c7b3baa8 Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Fri, 6 Sep 2002 20:23:09 +0000 Subject: [PATCH] Remove .pyo files too. --- Mac/scripts/zappycfiles.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Mac/scripts/zappycfiles.py b/Mac/scripts/zappycfiles.py index 22a021cab2f..dcd41334c67 100644 --- a/Mac/scripts/zappycfiles.py +++ b/Mac/scripts/zappycfiles.py @@ -1,5 +1,5 @@ #!/usr/local/bin/python -"""Recursively zap all .pyc files""" +"""Recursively zap all .pyc and .pyo files""" import os import sys @@ -27,7 +27,7 @@ def zappyc(dir): def walker(dummy, top, names): for name in names: - if name[-4:] == '.pyc': + if name[-4:] in ('.pyc', '.pyo'): path = os.path.join(top, name) print 'Zapping', path if doit: