mirror of
https://github.com/python/cpython.git
synced 2025-08-27 20:25:18 +00:00
Issue #24288: Generated opcode.h no longer contains trailing spaces and tabs.
This commit is contained in:
parent
0109812040
commit
3028c955fa
2 changed files with 117 additions and 117 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue