Update the docstring to match the code. Will backport.
This commit is contained in:
parent
ac30eadc0d
commit
a4864a2464
|
@ -75,10 +75,12 @@ def swapcase(s):
|
||||||
|
|
||||||
# Strip leading and trailing tabs and spaces
|
# Strip leading and trailing tabs and spaces
|
||||||
def strip(s, chars=None):
|
def strip(s, chars=None):
|
||||||
"""strip(s) -> string
|
"""strip(s [,chars]) -> string
|
||||||
|
|
||||||
Return a copy of the string s with leading and trailing
|
Return a copy of the string s with leading and trailing
|
||||||
whitespace removed.
|
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)
|
return s.strip(chars)
|
||||||
|
|
Loading…
Reference in New Issue