mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
cleanup
This commit is contained in:
+1
-1
@@ -345,7 +345,7 @@ def parse_download_fname(fname):
|
||||
fname, _ = os.path.splitext(fname)
|
||||
|
||||
fname_components = fname.split('-')
|
||||
for n, component in fname_components:
|
||||
for n, component in enumerate(fname_components):
|
||||
if is_version(component):
|
||||
# Return what's left when we find start of version.
|
||||
return '-'.join(fname_components[n:])
|
||||
|
||||
Reference in New Issue
Block a user