summaryrefslogtreecommitdiffstats
path: root/Lib/string.py
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2002-11-14 03:31:32 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2002-11-14 03:31:32 (GMT)
commita4864a24646185b336988196c650a85601a5e04a (patch)
tree50bc95fbcef5d55985d692d218c808952c12530f /Lib/string.py
parentac30eadc0dcd226ad1bb407ac1b9fde93b9e7d22 (diff)
downloadcpython-a4864a24646185b336988196c650a85601a5e04a.zip
cpython-a4864a24646185b336988196c650a85601a5e04a.tar.gz
cpython-a4864a24646185b336988196c650a85601a5e04a.tar.bz2
Update the docstring to match the code. Will backport.
Diffstat (limited to 'Lib/string.py')
-rw-r--r--Lib/string.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/string.py b/Lib/string.py
index 64e1190..021469c 100644
--- a/Lib/string.py
+++ b/Lib/string.py
@@ -75,10 +75,12 @@ def swapcase(s):
# Strip leading and trailing tabs and spaces
def strip(s, chars=None):
- """strip(s) -> string
+ """strip(s [,chars]) -> string
Return a copy of the string s with leading and trailing
whitespace removed.
+ If chars is given and not None, remove characters in sep instead.
+ If chars is unicode, S will be converted to unicode before stripping.
"""
return s.strip(chars)