diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-05-27 18:31:33 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-05-27 18:31:33 (GMT) |
commit | 3028c955fa5b1950632a0fb56597e85b8ca16025 (patch) | |
tree | c2b87575b6bdba98913a60374dc4ec1617de1a30 /Tools/scripts | |
parent | 0109812040317ef3ac46fa9c3c4f886b4070bdf8 (diff) | |
download | cpython-3028c955fa5b1950632a0fb56597e85b8ca16025.zip cpython-3028c955fa5b1950632a0fb56597e85b8ca16025.tar.gz cpython-3028c955fa5b1950632a0fb56597e85b8ca16025.tar.bz2 |
Issue #24288: Generated opcode.h no longer contains trailing spaces and tabs.
Diffstat (limited to 'Tools/scripts')
-rw-r--r-- | Tools/scripts/generate_opcode_h.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/scripts/generate_opcode_h.py b/Tools/scripts/generate_opcode_h.py index efa18a1..c62f9a5 100644 --- a/Tools/scripts/generate_opcode_h.py +++ b/Tools/scripts/generate_opcode_h.py @@ -43,9 +43,9 @@ def main(opcode_py, outfile='Include/opcode.h'): fobj.write(header) for name in opcode['opname']: if name in opmap: - fobj.write("#define %-20s\t%-3s\n" % (name, opmap[name])) + fobj.write("#define %-23s %3s\n" % (name, opmap[name])) if name == 'POP_EXCEPT': # Special entry for HAVE_ARGUMENT - fobj.write("#define %-20s\t%-3d\n" % + fobj.write("#define %-23s %3d\n" % ('HAVE_ARGUMENT', opcode['HAVE_ARGUMENT'])) fobj.write(footer) |