summaryrefslogtreecommitdiffstats
path: root/Lib/dis.py
diff options
context:
space:
mode:
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>2022-04-12 13:35:56 (GMT)
committerGitHub <noreply@github.com>2022-04-12 13:35:56 (GMT)
commite44f988b26cffedc8fd74c0424ac1fada695688b (patch)
tree9b9e9634d3c8b242a4d3320a7fd7e12aa3813f21 /Lib/dis.py
parentf33e2c87a83917b5139d97fd8ef7cba7223ebef5 (diff)
downloadcpython-e44f988b26cffedc8fd74c0424ac1fada695688b.zip
cpython-e44f988b26cffedc8fd74c0424ac1fada695688b.tar.gz
cpython-e44f988b26cffedc8fd74c0424ac1fada695688b.tar.bz2
gh-91276: make space for longer opcodes in dis output (GH-91444)
Diffstat (limited to 'Lib/dis.py')
-rw-r--r--Lib/dis.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/dis.py b/Lib/dis.py
index ac900d7..f7b38a8 100644
--- a/Lib/dis.py
+++ b/Lib/dis.py
@@ -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):