mirror of
https://github.com/python/cpython.git
synced 2025-09-13 12:17:24 +00:00
[3.11] gh-99016: Make build scripts compatible with Python 3.8 (GH-99017). (GH-99693)
(cherry picked from commit f520d720f6
)
This commit is contained in:
parent
f38eebb88b
commit
49f2eee0a3
2 changed files with 2 additions and 1 deletions
|
@ -0,0 +1 @@
|
||||||
|
Fix build with ``PYTHON_FOR_REGEN=python3.8``.
|
|
@ -102,7 +102,7 @@ def main(opcode_py, outfile='Include/opcode.h', internaloutfile='Include/interna
|
||||||
opname_including_specialized[255] = 'DO_TRACING'
|
opname_including_specialized[255] = 'DO_TRACING'
|
||||||
used[255] = True
|
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)
|
fobj.write(header)
|
||||||
iobj.write(internal_header)
|
iobj.write(internal_header)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue