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 | f480c674b1462db277f997dcdc120006a79cdcb2 (patch) | |
| tree | ce1b100aa9f3c8abc833e6b66a744a00ddfc05eb /Lib/stringold.py | |
| parent | 9e3f42909accd3e2f0dfb209323aa649f00d048f (diff) | |
| download | cpython-git-f480c674b1462db277f997dcdc120006a79cdcb2.tar.gz | |
Use correct separator for capwords(s, sep).
Diffstat (limited to 'Lib/stringold.py')
| -rw-r--r-- | Lib/stringold.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/stringold.py b/Lib/stringold.py index fd8363b0ec..687518d30e 100644 --- a/Lib/stringold.py +++ b/Lib/stringold.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 |
