diff options
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 fd8363b..687518d 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 |