commit | d30dedca27308441014e67a4208f37ce43e7d85c | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Thu Mar 30 15:02:11 2000 +0000 |
committer | Guido van Rossum <guido@python.org> | Thu Mar 30 15:02:11 2000 +0000 |
tree | b3c68b6ef4fb667089c2f83b13bc44db561b801a | |
parent | bf45322b3de1f14448db4992e12dd8408e4e740c [diff] |
Michael Hudson: With the (cool!) new call syntax, the longest opcode name is much longer, which fouls up dis's formatting slightly; this is a "fix" for that.
diff --git a/Lib/dis.py b/Lib/dis.py index 899393d..faea354 100644 --- a/Lib/dis.py +++ b/Lib/dis.py
@@ -65,7 +65,7 @@ if i in labels: print '>>', else: print ' ', print string.rjust(`i`, 4), - print string.ljust(opname[op], 15), + print string.ljust(opname[op], 20), i = i+1 if op >= HAVE_ARGUMENT: oparg = ord(code[i]) + ord(code[i+1])*256