]> granicus.if.org Git - python/commitdiff
Update the docstring to match the code. Will backport.
authorNeal Norwitz <nnorwitz@gmail.com>
Thu, 14 Nov 2002 03:31:32 +0000 (03:31 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Thu, 14 Nov 2002 03:31:32 +0000 (03:31 +0000)
Lib/string.py

index 64e1190496068265b7aa3d4bc5667137ed3fd452..021469c78c7bb97bc5de712752e2cf105febbe33 100644 (file)
@@ -75,10 +75,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)