[Python-checkins] python/dist/src/Lib string.py,1.66,1.67

nnorwitz@users.sourceforge.net nnorwitz@users.sourceforge.net
Wed, 13 Nov 2002 19:31:35 -0800


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

Modified Files:
	string.py 
Log Message:
Update the docstring to match the code.  Will backport.

Index: string.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/string.py,v
retrieving revision 1.66
retrieving revision 1.67
diff -C2 -d -r1.66 -r1.67
*** string.py	8 Nov 2002 12:09:59 -0000	1.66
--- string.py	14 Nov 2002 03:31:32 -0000	1.67
***************
*** 76,83 ****
  # Strip leading and trailing tabs and spaces
  def strip(s, chars=None):
!     """strip(s) -> string
  
      Return a copy of the string s with leading and trailing
      whitespace removed.
  
      """
--- 76,85 ----
  # Strip leading and trailing tabs and spaces
  def strip(s, chars=None):
!     """strip(s [,chars]) -> string
  
      Return a copy of the string s with leading and trailing
      whitespace removed.
+     If chars is given and not None, remove characters in sep instead.
+     If chars is unicode, S will be converted to unicode before stripping.
  
      """