diff Lib/string.py @ 26108:2832628ee8cc 2.2

Make strip work as documented.
author Martin v. Löwis <martin@v.loewis.de>
date Fri, 08 Nov 2002 12:11:03 +0000
parents b08b51dce264
children e89056718235
line wrap: on
line diff
--- a/Lib/string.py	Fri Nov 08 07:42:58 2002 +0000
+++ b/Lib/string.py	Fri Nov 08 12:11:03 2002 +0000
@@ -73,14 +73,14 @@
     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):