]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Update the docstring to match the code.
authorNeal Norwitz <nnorwitz@gmail.com>
Thu, 14 Nov 2002 03:32:08 +0000 (03:32 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Thu, 14 Nov 2002 03:32:08 +0000 (03:32 +0000)
Lib/string.py

index c87ffb4783f3b30c5632bb9307d8314d75db0a34..5aec4d5571e7a67824e402eab5911dbf2bfa1bb7 100644 (file)
@@ -74,10 +74,12 @@ def swapcase(s):
 
 # Strip leading and trailing tabs and spaces
 def strip(s, chars=None):
-    """strip(s) -> string
+    """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.
 
     """
     return s.strip(chars)