From 1f04610b497c733189212386152219040e18dacb 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: [PATCH] Make strip behave as documented. Will backport to 2.2.3. --- Lib/string.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/string.py b/Lib/string.py index ec796f63adb..64e11904960 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):