[Patches] touch up dis formatting

Michael Hudson mwh21@cam.ac.uk
Thu, 30 Mar 2000 10:40:19 +0100 (BST)


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.

Index: dis.py
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Lib/dis.py,v
retrieving revision 1.20
diff -u -r1.20 dis.py
--- dis.py	2000/03/28 23:49:07	1.20
+++ dis.py	2000/03/30 09:32:11
@@ -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

nitpicking-ly y'rs
M.

I confirm that, to the best of my knowledge and belief, this
contribution is free of any claims of third parties under
copyright, patent or other rights or interests ("claims").  To
the extent that I have any such claims, I hereby grant to CNRI a
nonexclusive, irrevocable, royalty-free, worldwide license to
reproduce, distribute, perform and/or display publicly, prepare
derivative versions, and otherwise use this contribution as part
of the Python software and its related documentation, or any
derivative versions thereof, at no cost to CNRI or its licensed
users, and to authorize others to do so.

I acknowledge that CNRI may, at its sole discretion, decide
whether or not to incorporate this contribution in the Python
software and its related documentation.  I further grant CNRI
permission to use my name and other identifying information
provided to CNRI by me for use in connection with the Python
software and its related documentation.