[Python-checkins] python/dist/src/Lib string.py,1.60.16.2,1.60.16.3

loewis@users.sourceforge.net loewis@users.sourceforge.net
Fri, 08 Nov 2002 04:11:05 -0800


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

Modified Files:
      Tag: release22-maint
	string.py 
Log Message:
Make strip work as documented.


Index: string.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/string.py,v
retrieving revision 1.60.16.2
retrieving revision 1.60.16.3
diff -C2 -d -r1.60.16.2 -r1.60.16.3
*** string.py	22 Apr 2002 11:57:05 -0000	1.60.16.2
--- string.py	8 Nov 2002 12:11:03 -0000	1.60.16.3
***************
*** 74,78 ****
  
  # Strip leading and trailing tabs and spaces
! def strip(s):
      """strip(s) -> string
  
--- 74,78 ----
  
  # Strip leading and trailing tabs and spaces
! def strip(s, chars=None):
      """strip(s) -> string
  
***************
*** 81,85 ****
  
      """
!     return s.strip()
  
  # Strip leading tabs and spaces
--- 81,85 ----
  
      """
!     return s.strip(chars)
  
  # Strip leading tabs and spaces