mirror of https://github.com/python/cpython
bpo-46712: Let generate_global_objects.py Run on Earlier Python Versions (gh-31637)
https://bugs.python.org/issue46712
This commit is contained in:
parent
3b0f1c5a71
commit
21099fc064
|
@ -1176,7 +1176,7 @@ regen-importlib: regen-frozen
|
|||
# Global objects
|
||||
|
||||
.PHONY: regen-global-objects
|
||||
regen-global-objects: $(srcdir)/Tools/scripts/generate_global_objects.py
|
||||
regen-global-objects: regen-deepfreeze $(srcdir)/Tools/scripts/generate_global_objects.py
|
||||
$(PYTHON_FOR_REGEN) $(srcdir)/Tools/scripts/generate_global_objects.py
|
||||
|
||||
############################################################################
|
||||
|
|
|
@ -259,7 +259,7 @@ def generate_runtime_init(identifiers, strings):
|
|||
printer.write(after)
|
||||
|
||||
|
||||
def get_identifiers_and_strings() -> tuple[set[str], dict[str, str]]:
|
||||
def get_identifiers_and_strings() -> 'tuple[set[str], dict[str, str]]':
|
||||
identifiers = set(IDENTIFIERS)
|
||||
strings = dict(STRING_LITERALS)
|
||||
for name, string, *_ in iter_global_strings():
|
||||
|
|
Loading…
Reference in New Issue