Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 21099fc

Browse files
bpo-46712: Let generate_global_objects.py Run on Earlier Python Versions (gh-31637)
https://bugs.python.org/issue46712
1 parent 3b0f1c5 commit 21099fc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Makefile.pre.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -1176,7 +1176,7 @@ regen-importlib: regen-frozen
11761176
# Global objects
11771177

11781178
.PHONY: regen-global-objects
1179-
regen-global-objects: $(srcdir)/Tools/scripts/generate_global_objects.py
1179+
regen-global-objects: regen-deepfreeze $(srcdir)/Tools/scripts/generate_global_objects.py
11801180
$(PYTHON_FOR_REGEN) $(srcdir)/Tools/scripts/generate_global_objects.py
11811181

11821182
############################################################################

Tools/scripts/generate_global_objects.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ def generate_runtime_init(identifiers, strings):
259259
printer.write(after)
260260

261261

262-
def get_identifiers_and_strings() -> tuple[set[str], dict[str, str]]:
262+
def get_identifiers_and_strings() -> 'tuple[set[str], dict[str, str]]':
263263
identifiers = set(IDENTIFIERS)
264264
strings = dict(STRING_LITERALS)
265265
for name, string, *_ in iter_global_strings():

0 commit comments

Comments
 (0)