mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
quick logic fix for PR 793
This commit is contained in:
+1
-1
@@ -739,7 +739,7 @@ def pep440_version(version):
|
||||
def pep423_name(name):
|
||||
"""Normalize package name to PEP 423 style standard."""
|
||||
name = name.lower()
|
||||
if not (name in VCS_LIST or name in FILE_LIST):
|
||||
if any(entry in name for entry in (VCS_LIST+FILE_LIST)):
|
||||
return name.replace('_', '-')
|
||||
else:
|
||||
return name
|
||||
|
||||
Reference in New Issue
Block a user