summaryrefslogtreecommitdiff
path: root/Mac/scripts/zappycfiles.py
diff options
context:
space:
mode:
authorRonald Oussoren <ronaldoussoren@mac.com>2010-05-05 19:09:31 +0000
committerRonald Oussoren <ronaldoussoren@mac.com>2010-05-05 19:09:31 +0000
commit9545a23c7ffb35417d451d24cc3b0339627965a7 (patch)
tree5e22fd30c1c6936970b4d87ca3e91f8428c74983 /Mac/scripts/zappycfiles.py
parenta8157183b89c08cf47c969185d40973ec21a81c5 (diff)
downloadcpython-git-9545a23c7ffb35417d451d24cc3b0339627965a7.tar.gz
In a number of places code still revers
to "sys.platform == 'mac'" and that is dead code because it refers to a platform that is no longer supported (and hasn't been supported for several releases). Fixes issue #7908 for the trunk.
Diffstat (limited to 'Mac/scripts/zappycfiles.py')
-rw-r--r--Mac/scripts/zappycfiles.py11
1 files changed, 2 insertions, 9 deletions
diff --git a/Mac/scripts/zappycfiles.py b/Mac/scripts/zappycfiles.py
index d829159dac..6d3574877d 100644
--- a/Mac/scripts/zappycfiles.py
+++ b/Mac/scripts/zappycfiles.py
@@ -9,15 +9,8 @@ doit = 1
def main():
if not sys.argv[1:]:
- if os.name == 'mac':
- import EasyDialogs
- dir = EasyDialogs.AskFolder(message='Directory to zap pyc files in')
- if not dir:
- sys.exit(0)
- zappyc(dir)
- else:
- print 'Usage: zappyc dir ...'
- sys.exit(1)
+ print 'Usage: zappyc dir ...'
+ sys.exit(1)
for dir in sys.argv[1:]:
zappyc(dir)