summaryrefslogtreecommitdiffstats
path: root/Mac/scripts
diff options
context:
space:
mode:
authorRonald Oussoren <ronaldoussoren@mac.com>2010-05-05 19:09:31 (GMT)
committerRonald Oussoren <ronaldoussoren@mac.com>2010-05-05 19:09:31 (GMT)
commit9545a23c7ffb35417d451d24cc3b0339627965a7 (patch)
tree5e22fd30c1c6936970b4d87ca3e91f8428c74983 /Mac/scripts
parenta8157183b89c08cf47c969185d40973ec21a81c5 (diff)
downloadcpython-9545a23c7ffb35417d451d24cc3b0339627965a7.zip
cpython-9545a23c7ffb35417d451d24cc3b0339627965a7.tar.gz
cpython-9545a23c7ffb35417d451d24cc3b0339627965a7.tar.bz2
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')
-rw-r--r--Mac/scripts/BuildApplet.py3
-rw-r--r--Mac/scripts/zappycfiles.py11
2 files changed, 2 insertions, 12 deletions
diff --git a/Mac/scripts/BuildApplet.py b/Mac/scripts/BuildApplet.py
index eeeb82b..a76ed90 100644
--- a/Mac/scripts/BuildApplet.py
+++ b/Mac/scripts/BuildApplet.py
@@ -112,9 +112,6 @@ def buildapplet():
usage()
elif opt in ('-d', '--destroot'):
destroot = arg
- # On OS9 always be verbose
- if sys.platform == 'mac' and not verbose:
- verbose = 'default'
# Loop over all files to be processed
for filename in args:
cr, tp = MacOS.GetCreatorAndType(filename)
diff --git a/Mac/scripts/zappycfiles.py b/Mac/scripts/zappycfiles.py
index d829159..6d35748 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)