From e8a7706cc687c81d3df212e068b5dd9889baab0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Fri, 8 Nov 2002 12:09:59 +0000 Subject: Make strip behave as documented. Will backport to 2.2.3. --- Lib/string.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Lib/string.py') diff --git a/Lib/string.py b/Lib/string.py index ec796f63ad..64e1190496 100644 --- a/Lib/string.py +++ b/Lib/string.py @@ -74,14 +74,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): -- cgit v1.2.1