Commit cdcc7e5f authored by Jason R. Coombs's avatar Jason R. Coombs Committed by GitHub

Revert "Make safe_name compliant to PEP 503 and behaviour of pip > 8.1.2"

parent c2018ee0
Make safe_name compliant with PEP 503.
......@@ -1312,9 +1312,9 @@ def get_default_cache():
def safe_name(name):
"""Convert an arbitrary string to a standard distribution name
Any runs of non-alphanumeric characters are replaced with a single '-'.
Any runs of non-alphanumeric/. characters are replaced with a single '-'.
"""
return re.sub('[^A-Za-z0-9]+', '-', name)
return re.sub('[^A-Za-z0-9.]+', '-', name)
def safe_version(version):
......
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