Kaydet (Commit) f480c674 authored tarafından Guido van Rossum's avatar Guido van Rossum

Use correct separator for capwords(s, sep).

üst 9e3f4290
......@@ -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
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment