From: Neal Norwitz Date: Thu, 14 Nov 2002 03:31:32 +0000 (+0000) Subject: Update the docstring to match the code. Will backport. X-Git-Tag: v2.3c1~3427 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a4864a24646185b336988196c650a85601a5e04a;p=thirdparty%2FPython%2Fcpython.git Update the docstring to match the code. Will backport. --- diff --git a/Lib/string.py b/Lib/string.py index 64e119049606..021469c78c7b 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)