From d86997d24876e1210a3217addcf91434bbd59c2d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Fri, 8 Nov 2002 12:11:03 +0000 Subject: [PATCH] Make strip work as documented. --- Lib/string.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/string.py b/Lib/string.py index cd9909e26617..c87ffb4783f3 100644 --- a/Lib/string.py +++ b/Lib/string.py @@ -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): -- 2.47.3