[Python-checkins] [3.11] gh-99016: Make build scripts compatible with Python 3.8 (GH-99017). (GH-99693)
serhiy-storchaka
webhook-mailer at python.org
Tue Nov 22 10:46:24 EST 2022
https://github.com/python/cpython/commit/49f2eee0a34af74d6c68969243d47ada79298975
commit: 49f2eee0a34af74d6c68969243d47ada79298975
branch: 3.11
author: Serhiy Storchaka <storchaka at gmail.com>
committer: serhiy-storchaka <storchaka at gmail.com>
date: 2022年11月22日T17:46:18+02:00
summary:
[3.11] gh-99016: Make build scripts compatible with Python 3.8 (GH-99017). (GH-99693)
(cherry picked from commit f520d720f667c87f7b70ed86ea58d73892d6b969)
files:
A Misc/NEWS.d/next/Build/2022-11-02-19-25-07.gh-issue-99016.R05NkD.rst
M Tools/scripts/generate_opcode_h.py
diff --git a/Misc/NEWS.d/next/Build/2022-11-02-19-25-07.gh-issue-99016.R05NkD.rst b/Misc/NEWS.d/next/Build/2022-11-02-19-25-07.gh-issue-99016.R05NkD.rst
new file mode 100644
index 000000000000..df189daca3a2
--- /dev/null
+++ b/Misc/NEWS.d/next/Build/2022-11-02-19-25-07.gh-issue-99016.R05NkD.rst
@@ -0,0 +1 @@
+Fix build with ``PYTHON_FOR_REGEN=python3.8``.
diff --git a/Tools/scripts/generate_opcode_h.py b/Tools/scripts/generate_opcode_h.py
index 6a04297879f2..5b225f27c4f7 100644
--- a/Tools/scripts/generate_opcode_h.py
+++ b/Tools/scripts/generate_opcode_h.py
@@ -102,7 +102,7 @@ def main(opcode_py, outfile='Include/opcode.h', internaloutfile='Include/interna
opname_including_specialized[255] = 'DO_TRACING'
used[255] = True
- with (open(outfile, 'w') as fobj, open(internaloutfile, 'w') as iobj):
+ with open(outfile, 'w') as fobj, open(internaloutfile, 'w') as iobj:
fobj.write(header)
iobj.write(internal_header)
More information about the Python-checkins
mailing list