Oops...that will teach me to hit ^C^C too fast. Test passed.

This commit is contained in:
Eric S. Raymond 2001-02-09 09:21:01 +00:00
parent 66d9919cab
commit 92852ad9a4
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ def capwords(str, pat='[^a-zA-Z0-9_]+'):
words = splitx(str, pat)
for i in range(0, len(words), 2):
words[i] = words[i].capitalize()
return "".joinfields(words)
return "".join(words)
# Internal subroutines: