Mercurial > cpython-lru_cache-weakref
diff Lib/string.py @ 4145:951ed9a83f57 legacy-trunk
Use correct separator for capwords(s, sep).
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Mon, 26 Aug 1996 15:55:00 +0000 |
| parents | eda29bef880c |
| children | 3ec3d8807f9e |
line wrap: on
line diff
--- a/Lib/string.py Mon Aug 26 15:46:13 1996 +0000 +++ b/Lib/string.py Mon Aug 26 15:55:00 1996 +0000 @@ -288,7 +288,7 @@ # Capitalize the words in a string, e.g. " aBc dEf " -> "Abc Def". # See also regsub.capwords(). def capwords(s, sep=None): - return join(map(capitalize, split(s, sep))) + return join(map(capitalize, split(s, sep)), sep or ' ') # Construct a translation string _idmapL = None
