]> granicus.if.org Git - python/commitdiff
Oops...that will teach me to hit ^C^C too fast. Test passed.
authorEric S. Raymond <esr@thyrsus.com>
Fri, 9 Feb 2001 09:21:01 +0000 (09:21 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Fri, 9 Feb 2001 09:21:01 +0000 (09:21 +0000)
Lib/regsub.py

index 7778602c2d7ef3355a91620934d26e7a2f936884..de833d510743e8cd22efe932353c02588b823bdc 100644 (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: