Skip to content

Commit

Permalink
[3.11] gh-99016: Make build scripts compatible with Python 3.8 (GH-99017
Browse files Browse the repository at this point in the history
). (GH-99693)

(cherry picked from commit f520d72)
  • Loading branch information
serhiy-storchaka authored Nov 22, 2022
1 parent f38eebb commit 49f2eee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix build with ``PYTHON_FOR_REGEN=python3.8``.
2 changes: 1 addition & 1 deletion Tools/scripts/generate_opcode_h.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 49f2eee

Please sign in to comment.