Skip to content

Commit 8e676db

Browse files
committed
fix import re
1 parent 627a750 commit 8e676db

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

noxfile.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import json
88
import os
99
import pathlib
10+
import re
1011
import tempfile
1112
import urllib.request as url_lib
1213
import zipfile
@@ -84,8 +85,6 @@ def _parse_wheel_info(url: str) -> dict:
8485
Example URL: .../debugpy-1.8.19-cp311-cp311-win_amd64.whl
8586
Returns: {"version": "1.8.19", "py_ver": "311", "abi": "cp311", "platform": "win_amd64"}
8687
"""
87-
import re
88-
8988
filename = url.rsplit("/", 1)[-1]
9089
# Wheel filename format: {name}-{version}-{python}-{abi}-{platform}.whl
9190
match = re.match(r"debugpy-([^-]+)-cp(\d+)-([^-]+)-(.+)\.whl", filename)

0 commit comments

Comments
 (0)