gh-91276: make space for longer opcodes in dis output (GH-91444)

This commit is contained in:
Irit Katriel 2022-04-12 14:35:56 +01:00 committed by GitHub
parent f33e2c87a8
commit e44f988b26
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 213 additions and 224 deletions

View file

@ -245,7 +245,7 @@ _Instruction.positions.__doc__ = "dis.Positions object holding the span of sourc
_ExceptionTableEntry = collections.namedtuple("_ExceptionTableEntry",
"start end target depth lasti")
_OPNAME_WIDTH = 20
_OPNAME_WIDTH = max(map(len, opmap))
_OPARG_WIDTH = 5
class Instruction(_Instruction):