From f480c674b1462db277f997dcdc120006a79cdcb2 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 26 Aug 1996 15:55:00 +0000 Subject: Use correct separator for capwords(s, sep). --- Lib/stringold.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/stringold.py') 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 -- cgit v1.2.1