Update the docstring to match the code. Will backport.

This commit is contained in:
Neal Norwitz 2002-11-14 03:31:32 +00:00
parent ac30eadc0d
commit a4864a2464
1 changed files with 3 additions and 1 deletions

View File

@ -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)