Commit 01bb6e0e authored by Jason R. Coombs's avatar Jason R. Coombs

Correct regex usage

parent a631a070
......@@ -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
......
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