]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Make strip work as documented.
authorMartin v. Löwis <martin@v.loewis.de>
Fri, 8 Nov 2002 12:11:03 +0000 (12:11 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Fri, 8 Nov 2002 12:11:03 +0000 (12:11 +0000)
Lib/string.py

index cd9909e2661721c1a53277f1e82968a98901e4fc..c87ffb4783f3b30c5632bb9307d8314d75db0a34 100644 (file)
@@ -73,14 +73,14 @@ def swapcase(s):
     return s.swapcase()
 
 # Strip leading and trailing tabs and spaces
-def strip(s):
+def strip(s, chars=None):
     """strip(s) -> string
 
     Return a copy of the string s with leading and trailing
     whitespace removed.
 
     """
-    return s.strip()
+    return s.strip(chars)
 
 # Strip leading tabs and spaces
 def lstrip(s):