diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2015-03-20 15:58:37 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2015-03-20 15:58:37 -0400 |
commit | 01bb6e0e9217255cd835cefb8162463dac5d8e6d (patch) | |
tree | 2dc1976633180d22a9c86542562351bf32b96277 /setuptools/package_index.py | |
parent | a631a0700d2ebcc9ee98c91d474f351974cc0b92 (diff) | |
download | external_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-x | setuptools/package_index.py | 2 |
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 |