summaryrefslogtreecommitdiffstats
path: root/Lib/string.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/string.py')
-rw-r--r--Lib/string.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/string.py b/Lib/string.py
index ec796f6..64e1190 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):