mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Oops...that will teach me to hit ^C^C too fast. Test passed.
This commit is contained in:
parent
66d9919cab
commit
92852ad9a4
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue