Skip to content

Commit d8cd93f

Browse files
authored
Fix incorrect use of re function in tests (#12213)
1 parent 901db9c commit d8cd93f

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

news/732404DE-8011-4146-8CAD-85D7756D88A6.trivial.rst

Whitespace-only changes.

tests/lib/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1187,7 +1187,7 @@ def create_basic_wheel_for_package(
11871187

11881188
# Fix wheel distribution name by replacing runs of non-alphanumeric
11891189
# characters with an underscore _ as per PEP 491
1190-
name = re.sub(r"[^\w\d.]+", "_", name, re.UNICODE)
1190+
name = re.sub(r"[^\w\d.]+", "_", name)
11911191
archive_name = f"{name}-{version}-py2.py3-none-any.whl"
11921192
archive_path = script.scratch_path / archive_name
11931193

0 commit comments

Comments
 (0)