diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2002-11-08 12:09:59 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2002-11-08 12:09:59 (GMT) |
commit | 1f04610b497c733189212386152219040e18dacb (patch) | |
tree | 48258a497989fba86c31f622ad987ee362dcabd4 /Lib | |
parent | 1644986758e73a5e351d8938e8fd784824a327c7 (diff) | |
download | cpython-1f04610b497c733189212386152219040e18dacb.zip cpython-1f04610b497c733189212386152219040e18dacb.tar.gz cpython-1f04610b497c733189212386152219040e18dacb.tar.bz2 |
Make strip behave as documented. Will backport to 2.2.3.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/string.py | 4 |
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): |