diff options
| author | Neal Norwitz <nnorwitz@gmail.com> | 2007-08-30 05:35:41 +0000 |
|---|---|---|
| committer | Neal Norwitz <nnorwitz@gmail.com> | 2007-08-30 05:35:41 +0000 |
| commit | bf9ae3584f023df6f04f88e17cfe987e004de033 (patch) | |
| tree | f1ba3853af42196b7c5cda5e7ddf108e2087fba4 | |
| parent | aabf8bf21c444cfae978e92e626ba7c0274a9f10 (diff) | |
| download | python-setuptools-git-bf9ae3584f023df6f04f88e17cfe987e004de033.tar.gz | |
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.
| -rw-r--r-- | util.py | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 |
