summaryrefslogtreecommitdiffstats
path: root/Tools/scripts
diff options
context:
space:
mode:
authorKen Jin <28750310+Fidget-Spinner@users.noreply.github.com>2022-06-24 17:55:18 (GMT)
committerGitHub <noreply@github.com>2022-06-24 17:55:18 (GMT)
commit50a5ab2c0bf7bd10d85e80c9f71a7b7245a0682a (patch)
tree7a1db90f15efc86854a72de9172aad4f4a28b173 /Tools/scripts
parenta91ffcf3fa15ce3884f620c799566aa734412f9d (diff)
downloadcpython-50a5ab2c0bf7bd10d85e80c9f71a7b7245a0682a.zip
cpython-50a5ab2c0bf7bd10d85e80c9f71a7b7245a0682a.tar.gz
cpython-50a5ab2c0bf7bd10d85e80c9f71a7b7245a0682a.tar.bz2
gh-93382: Sync up `co_code` changes with 3.11 (GH-94227)
Sync up co_code changes with 3.11 commit 852b4d4bcd12b0b6839a015a262ce976b134f6f3.
Diffstat (limited to 'Tools/scripts')
-rw-r--r--Tools/scripts/deepfreeze.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Tools/scripts/deepfreeze.py b/Tools/scripts/deepfreeze.py
index a46cf6c..f9fd4e3 100644
--- a/Tools/scripts/deepfreeze.py
+++ b/Tools/scripts/deepfreeze.py
@@ -274,6 +274,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("._co_linearray = NULL,")
self.write(f".co_code_adaptive = {co_code_adaptive},")
for i, op in enumerate(code.co_code[::2]):