summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorKen Jin <kenjin@python.org>2022-10-11 03:26:08 (GMT)
committerGitHub <noreply@github.com>2022-10-11 03:26:08 (GMT)
commitb399115ef18945f7526492225d72a512048ad20d (patch)
treea535c3b234b6eebddee356b9a4df25971f0b89b5 /Tools
parentf871e9a7bb4eb823da481b99052636763ec8e710 (diff)
downloadcpython-b399115ef18945f7526492225d72a512048ad20d.zip
cpython-b399115ef18945f7526492225d72a512048ad20d.tar.gz
cpython-b399115ef18945f7526492225d72a512048ad20d.tar.bz2
gh-95756: Lazily created cached co_* attrs (GH-97791)
Diffstat (limited to 'Tools')
-rw-r--r--Tools/scripts/deepfreeze.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/scripts/deepfreeze.py b/Tools/scripts/deepfreeze.py
index d9c6030..28ac2b1 100644
--- a/Tools/scripts/deepfreeze.py
+++ b/Tools/scripts/deepfreeze.py
@@ -276,7 +276,7 @@ class Printer:
self.write(f".co_name = {co_name},")
self.write(f".co_qualname = {co_qualname},")
self.write(f".co_linetable = {co_linetable},")
- self.write(f"._co_code = NULL,")
+ self.write(f"._co_cached = NULL,")
self.write("._co_linearray = NULL,")
self.write(f".co_code_adaptive = {co_code_adaptive},")
for i, op in enumerate(code.co_code[::2]):