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

Eric S. Raymond esr@users.sourceforge.net
Fri, 09 Feb 2001 01:10:37 -0800


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

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


Index: keyword.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/keyword.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** keyword.py	2001/01/24 06:27:27	1.9
--- keyword.py	2001/02/09 09:10:35	1.10
***************
*** 53,57 ****
  
  def main():
!     import sys, re, string
  
      args = sys.argv[1:]
--- 53,57 ----
  
  def main():
!     import sys, re
  
      args = sys.argv[1:]
***************
*** 67,71 ****
          line = fp.readline()
          if not line: break
!         if string.find(line, '{1, "') > -1:
              match = strprog.search(line)
              if match:
--- 67,71 ----
          line = fp.readline()
          if not line: break
!         if line.find('{1, "') > -1:
              match = strprog.search(line)
              if match:
***************
*** 90,94 ****
      # write the output file
      fp = open(optfile, 'w')
!     fp.write(string.join(format, ''))
      fp.close()
  
--- 90,94 ----
      # write the output file
      fp = open(optfile, 'w')
!     fp.write(''.join(format))
      fp.close()