aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/package_index.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2015-03-20 15:58:37 -0400
committerJason R. Coombs <jaraco@jaraco.com>2015-03-20 15:58:37 -0400
commit01bb6e0e9217255cd835cefb8162463dac5d8e6d (patch)
tree2dc1976633180d22a9c86542562351bf32b96277 /setuptools/package_index.py
parenta631a0700d2ebcc9ee98c91d474f351974cc0b92 (diff)
downloadexternal_python_setuptools-01bb6e0e9217255cd835cefb8162463dac5d8e6d.tar.gz
external_python_setuptools-01bb6e0e9217255cd835cefb8162463dac5d8e6d.tar.bz2
external_python_setuptools-01bb6e0e9217255cd835cefb8162463dac5d8e6d.zip
Correct regex usage
Diffstat (limited to 'setuptools/package_index.py')
-rwxr-xr-xsetuptools/package_index.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/package_index.py b/setuptools/package_index.py
index 963b4b41..95eb1cf3 100755
--- a/setuptools/package_index.py
+++ b/setuptools/package_index.py
@@ -140,7 +140,7 @@ def interpret_distro_name(
parts = basename.split('-')
if not py_version:
for i,p in enumerate(parts[2:]):
- if p.match('py\d\.\d'):
+ if re.match('py\d\.\d$', p):
# It's a bdist_dumb, not an sdist -- bail out
return