Skip to content

Commit bcc916b

Browse files
committed
For #13673, fix for Python 3.11
1 parent a41cd79 commit bcc916b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

framework.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def init_framework(self):
7575
"lib"
7676
)
7777
)
78-
python_pattern = r"^python%d\.\d$" % python_major
78+
python_pattern = r"^python%d\.\d+$" % python_major
7979
for folder in lib_folders:
8080
if re.match(python_pattern, folder):
8181
break

hooks/core/bootstrap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def populate_bundle_cache_entry(self, destination, descriptor, **kwargs):
138138
for asset in response_d["assets"]:
139139
name = asset["name"]
140140
m = re.match(
141-
r"%s-py\d.\d-%s.zip" % (version, pname),
141+
r"%s-py\d.\d+-%s.zip" % (version, pname),
142142
name
143143
)
144144
if m:

0 commit comments

Comments
 (0)