[Python-checkins] CVS: python/dist/src/Lib pstats.py,1.9,1.10

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


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

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


Index: pstats.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/pstats.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** pstats.py	2001/01/15 00:50:52	1.9
--- pstats.py	2001/02/09 08:25:29	1.10
***************
*** 35,39 ****
  import os
  import time
- import string
  import marshal
  import re
--- 35,38 ----
***************
*** 393,401 ****
  
      def print_call_heading(self, name_size, column_title):
!         print string.ljust("Function ", name_size) + column_title
  
  
      def print_call_line(self, name_size, source, call_dict):
!         print string.ljust(func_std_string(source), name_size),
          if not call_dict:
              print "--"
--- 392,400 ----
  
      def print_call_heading(self, name_size, column_title):
!         print "Function ".ljust(name_size) + column_title
  
  
      def print_call_line(self, name_size, source, call_dict):
!         print func_std_string(source).ljust(name_size),
          if not call_dict:
              print "--"
***************
*** 415,423 ****
  
      def print_title(self):
!         print string.rjust('ncalls', 9),
!         print string.rjust('tottime', 8),
!         print string.rjust('percall', 8),
!         print string.rjust('cumtime', 8),
!         print string.rjust('percall', 8),
          print 'filename:lineno(function)'
  
--- 414,422 ----
  
      def print_title(self):
!         print 'ncalls'.rjust(9),
!         print 'tottime'.rjust(8),
!         print 'percall'.rjust(8),
!         print 'cumtime'.rjust(8),
!         print 'percall'.rjust(8),
          print 'filename:lineno(function)'
  
***************
*** 428,432 ****
          if nc != cc:
              c = c + '/' + `cc`
!         print string.rjust(c, 9),
          print f8(tt),
          if nc == 0:
--- 427,431 ----
          if nc != cc:
              c = c + '/' + `cc`
!         print c.rjust(9),
          print f8(tt),
          if nc == 0:
***************
*** 523,525 ****
  
  def f8(x):
!     return string.rjust(fpformat.fix(x, 3), 8)
--- 522,524 ----
  
  def f8(x):
!     return fpformat.fix(x, 3).rjust(8)