diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2022-03-01 21:29:54 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-01 21:29:54 (GMT) |
commit | 21099fc064c61d59c936a2f6a0db3e07cd5c8de5 (patch) | |
tree | 492c3bd1714b3bb30c412e8907bdf60692d3b201 | |
parent | 3b0f1c5a710eff289dc44bec972dbaea353cc54f (diff) | |
download | cpython-21099fc064c61d59c936a2f6a0db3e07cd5c8de5.zip cpython-21099fc064c61d59c936a2f6a0db3e07cd5c8de5.tar.gz cpython-21099fc064c61d59c936a2f6a0db3e07cd5c8de5.tar.bz2 |
bpo-46712: Let generate_global_objects.py Run on Earlier Python Versions (gh-31637)
https://bugs.python.org/issue46712
-rw-r--r-- | Makefile.pre.in | 2 | ||||
-rw-r--r-- | Tools/scripts/generate_global_objects.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in index 0383853..7b6f54a 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -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 ############################################################################ diff --git a/Tools/scripts/generate_global_objects.py b/Tools/scripts/generate_global_objects.py index 639d8fa..867358c 100644 --- a/Tools/scripts/generate_global_objects.py +++ b/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(): |