summaryrefslogtreecommitdiffstats
path: root/Tools/idle/IdleConf.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-03-06 14:16:41 (GMT)
committerGuido van Rossum <guido@python.org>2000-03-06 14:16:41 (GMT)
commit074d6e1f563818d2b56b84a31945c161c538c5c6 (patch)
treeb43d602c17296fa51ecee84db879875734c5923c /Tools/idle/IdleConf.py
parent9552665436eb477e9c1f73270dc8ee4cb188bacf (diff)
downloadcpython-074d6e1f563818d2b56b84a31945c161c538c5c6.zip
cpython-074d6e1f563818d2b56b84a31945c161c538c5c6.tar.gz
cpython-074d6e1f563818d2b56b84a31945c161c538c5c6.tar.bz2
Don't use 1.6-isms (s.startswith()) -- we want to distribute this
before 1.6 is out so it has to be compatible with 1.5.2.
Diffstat (limited to 'Tools/idle/IdleConf.py')
-rw-r--r--Tools/idle/IdleConf.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/idle/IdleConf.py b/Tools/idle/IdleConf.py
index 4d6ca4d..df5d9f8 100644
--- a/Tools/idle/IdleConf.py
+++ b/Tools/idle/IdleConf.py
@@ -91,10 +91,10 @@ def load(dir):
global _dir
_dir = dir
- if sys.platform.startswith('win'):
+ if sys.platform[:3] == 'win':
genplatfile = os.path.join(dir, "config-win.txt")
# XXX don't know what the platform string is on a Mac
- elif sys.platform.startswith('mac'):
+ elif sys.platform[:3] == 'mac':
genplatfile = os.path.join(dir, "config-mac.txt")
else:
genplatfile = os.path.join(dir, "config-unix.txt")