Skip to content

Commit 49f2eee

Browse files
[3.11] gh-99016: Make build scripts compatible with Python 3.8 (GH-99017). (GH-99693)
(cherry picked from commit f520d72)
1 parent f38eebb commit 49f2eee

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix build with ``PYTHON_FOR_REGEN=python3.8``.

Tools/scripts/generate_opcode_h.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def main(opcode_py, outfile='Include/opcode.h', internaloutfile='Include/interna
102102
opname_including_specialized[255] = 'DO_TRACING'
103103
used[255] = True
104104

105-
with (open(outfile, 'w') as fobj, open(internaloutfile, 'w') as iobj):
105+
with open(outfile, 'w') as fobj, open(internaloutfile, 'w') as iobj:
106106
fobj.write(header)
107107
iobj.write(internal_header)
108108

0 commit comments

Comments
 (0)