summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2007-08-30 05:35:41 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2007-08-30 05:35:41 (GMT)
commitcabac0ac3accbdfab390896aa77e3d8766ec947f (patch)
tree133d15f1da2d7dabf017c6bbcc14422feedb33fe /Lib/distutils
parent0c3842fe26771fbfb6e26e295608e654e23758dc (diff)
downloadcpython-cabac0ac3accbdfab390896aa77e3d8766ec947f.zip
cpython-cabac0ac3accbdfab390896aa77e3d8766ec947f.tar.gz
cpython-cabac0ac3accbdfab390896aa77e3d8766ec947f.tar.bz2
Stop using the find function on the string module, use the string method.
This will hopefully fix the problem on a Windows buildbot with test_sundry.
Diffstat (limited to 'Lib/distutils')
-rw-r--r--Lib/distutils/util.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/distutils/util.py b/Lib/distutils/util.py
index 22a8ba2..e0ae2e5 100644
--- a/Lib/distutils/util.py
+++ b/Lib/distutils/util.py
@@ -39,14 +39,14 @@ def get_platform ():
if os.name == 'nt':
# sniff sys.version for architecture.
prefix = " bit ("
- i = string.find(sys.version, prefix)
+ i = sys.version.find(prefix)
if i == -1:
return sys.platform
- j = string.find(sys.version, ")", i)
+ j = sys.version.find(")", i)
look = sys.version[i+len(prefix):j].lower()
- if look=='amd64':
+ if look == 'amd64':
return 'win-x86_64'
- if look=='itanium':
+ if look == 'itanium':
return 'win-ia64'
return sys.platform