mirror of https://github.com/pypa/pip
Fix incorrect use of re function in tests (#12213)
This commit is contained in:
parent
901db9cf8d
commit
d8cd93f4fa
|
@ -1187,7 +1187,7 @@ def create_basic_wheel_for_package(
|
|||
|
||||
# Fix wheel distribution name by replacing runs of non-alphanumeric
|
||||
# characters with an underscore _ as per PEP 491
|
||||
name = re.sub(r"[^\w\d.]+", "_", name, re.UNICODE)
|
||||
name = re.sub(r"[^\w\d.]+", "_", name)
|
||||
archive_name = f"{name}-{version}-py2.py3-none-any.whl"
|
||||
archive_path = script.scratch_path / archive_name
|
||||
|
||||
|
|
Loading…
Reference in New Issue