diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2022-11-22 15:46:18 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-22 15:46:18 (GMT) |
commit | 49f2eee0a34af74d6c68969243d47ada79298975 (patch) | |
tree | 841795520c9c9dc6b44a6e13306d6f75d7ec2392 /Tools/scripts | |
parent | f38eebb88b79c1facc00eb426801bd3b6681d657 (diff) | |
download | cpython-49f2eee0a34af74d6c68969243d47ada79298975.zip cpython-49f2eee0a34af74d6c68969243d47ada79298975.tar.gz cpython-49f2eee0a34af74d6c68969243d47ada79298975.tar.bz2 |
[3.11] gh-99016: Make build scripts compatible with Python 3.8 (GH-99017). (GH-99693)
(cherry picked from commit f520d720f667c87f7b70ed86ea58d73892d6b969)
Diffstat (limited to 'Tools/scripts')
-rw-r--r-- | Tools/scripts/generate_opcode_h.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/scripts/generate_opcode_h.py b/Tools/scripts/generate_opcode_h.py index 6a04297..5b225f2 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) |