mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Update the docstring to match the code. Will backport.
This commit is contained in:
parent
ac30eadc0d
commit
a4864a2464
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue