]> granicus.if.org Git - python/commitdiff
Michael Hudson: With the (cool!) new call syntax, the longest opcode
authorGuido van Rossum <guido@python.org>
Thu, 30 Mar 2000 15:02:11 +0000 (15:02 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 30 Mar 2000 15:02:11 +0000 (15:02 +0000)
name is much longer, which fouls up dis's formatting slightly; this is
a "fix" for that.

Lib/dis.py

index 899393d3acdbc893387ff2f584f478a86e128ea5..faea354630984524c1ff11b41ad9c6cac7480268 100644 (file)
@@ -65,7 +65,7 @@ def disassemble(co, lasti=-1):
                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