Mercurial > cpython-lru_cache-weakref
diff Lib/string.py @ 26214:e89056718235 2.2
Update the docstring to match the code.
| author | Neal Norwitz <nnorwitz@gmail.com> |
|---|---|
| date | Thu, 14 Nov 2002 03:32:08 +0000 |
| parents | 2832628ee8cc |
| children | c2ad62f4ea9b |
line wrap: on
line diff
--- a/Lib/string.py Thu Nov 14 02:22:34 2002 +0000 +++ b/Lib/string.py Thu Nov 14 03:32:08 2002 +0000 @@ -74,10 +74,12 @@ # 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)
