[Python-checkins] python/dist/src/Doc/tools support.py,1.6,1.7

fdrake@users.sourceforge.net fdrake@users.sourceforge.net
Wed, 16 Oct 2002 08:30:22 -0700


Update of /cvsroot/python/python/dist/src/Doc/tools
In directory usw-pr-cvs1:/tmp/cvs-serv27901

Modified Files:
	support.py 
Log Message:
Use string methods.


Index: support.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/tools/support.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** support.py	5 Apr 2002 17:34:50 -0000	1.6
--- support.py	16 Oct 2002 15:30:17 -0000	1.7
***************
*** 9,13 ****
  
  import getopt
- import string
  import sys
  
--- 9,12 ----
***************
*** 72,76 ****
          for opt, val in opts:
              if opt in ("-a", "--address"):
!                 val = string.strip(val)
                  if val:
                      val = "<address>\n%s\n</address>\n" % val
--- 71,75 ----
          for opt, val in opts:
              if opt in ("-a", "--address"):
!                 val = val.strip()
                  if val:
                      val = "<address>\n%s\n</address>\n" % val