aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/package_index.py
diff options
context:
space:
mode:
authorPJ Eby <distutils-sig@python.org>2005-06-15 02:39:10 +0000
committerPJ Eby <distutils-sig@python.org>2005-06-15 02:39:10 +0000
commit0fd80962ecc527dbb57ec6472559cdb90ecfe582 (patch)
tree9f6e7b808c8b2273dcbbcf2ab91bf0e934b33207 /setuptools/package_index.py
parent645693ba88a2bd2beacbd50d57a5608960190a74 (diff)
downloadexternal_python_setuptools-0fd80962ecc527dbb57ec6472559cdb90ecfe582.tar.gz
external_python_setuptools-0fd80962ecc527dbb57ec6472559cdb90ecfe582.tar.bz2
external_python_setuptools-0fd80962ecc527dbb57ec6472559cdb90ecfe582.zip
Fix stupid typos.
--HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041071
Diffstat (limited to 'setuptools/package_index.py')
-rwxr-xr-xsetuptools/package_index.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/package_index.py b/setuptools/package_index.py
index d9d2fc00..9ed9a8a8 100755
--- a/setuptools/package_index.py
+++ b/setuptools/package_index.py
@@ -24,7 +24,7 @@ def parse_bdist_wininst(name):
if lower.endswith('.win32.exe'):
base = name[:-10]
elif lower[-16:].startswith('.win32-py'):
- py_ver = base[-7:-4]
+ py_ver = name[-7:-4]
base = name[:-16]
return base,py_ver
@@ -51,7 +51,7 @@ def distros_for_url(url, metadata=None):
return [dist] # only one, unambiguous interpretation
if base.endswith('.exe'):
- win_base, py_ver = parse_bdist_wininst(name)
+ win_base, py_ver = parse_bdist_wininst(base)
if win_base is not None:
return interpret_distro_name(
url, win_base, metadata, py_ver, BINARY_DIST, "win32"