[Python-checkins] CVS: python/dist/src/Lib dis.py,1.32,1.33

Eric S. Raymond esr@users.sourceforge.net
Fri, 09 Feb 2001 00:17:39 -0800


Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv18925

Modified Files:
	dis.py 
Log Message:
String method conversion.


Index: dis.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/dis.py,v
retrieving revision 1.32
retrieving revision 1.33
diff -C2 -r1.32 -r1.33
*** dis.py	2001/02/01 22:48:12	1.32
--- dis.py	2001/02/09 08:17:37	1.33
***************
*** 2,6 ****
  
  import sys
- import string
  import types
  
--- 2,5 ----
***************
*** 70,75 ****
          if i in labels: print '>>',
          else: print '  ',
!         print string.rjust(`i`, 4),
!         print string.ljust(opname[op], 20),
          i = i+1
          if op >= HAVE_ARGUMENT:
--- 69,74 ----
          if i in labels: print '>>',
          else: print '  ',
!         print `i`.rjust(4),
!         print opname[op].ljust(20),
          i = i+1
          if op >= HAVE_ARGUMENT:
***************
*** 79,83 ****
              if op == EXTENDED_ARG:
                  extended_arg = oparg*65536L
!             print string.rjust(`oparg`, 5),
              if op in hasconst:
                  print '(' + `co.co_consts[oparg]` + ')',
--- 78,82 ----
              if op == EXTENDED_ARG:
                  extended_arg = oparg*65536L
!             print `oparg`.rjust(5),
              if op in hasconst:
                  print '(' + `co.co_consts[oparg]` + ')',