diff options
| author | Guido van Rossum <guido@python.org> | 1996-08-26 15:55:00 +0000 |
|---|---|---|
| committer | Guido van Rossum <guido@python.org> | 1996-08-26 15:55:00 +0000 |
| commit | a7fdfbc93d4e0c19099e392c50a79a2bdba08046 (patch) | |
| tree | e382946530530b0fe0e56d47f701fff8ceef4b01 /Lib/string.py | |
| parent | 722ed3c8f5f7599aa0bf4e985996dd53a88e9af5 (diff) | |
| download | cpython-a7fdfbc93d4e0c19099e392c50a79a2bdba08046.tar.gz | |
Use correct separator for capwords(s, sep).
Diffstat (limited to 'Lib/string.py')
| -rw-r--r-- | Lib/string.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/string.py b/Lib/string.py index fd8363b0ec..687518d30e 100644 --- a/Lib/string.py +++ b/Lib/string.py @@ -288,7 +288,7 @@ def capitalize(s): # 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 |
