Commit bf9ae358 authored by Neal Norwitz's avatar Neal Norwitz

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.
parent aabf8bf2
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment