summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/regsub.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/regsub.py b/Lib/regsub.py
index 7778602..de833d5 100644
--- a/Lib/regsub.py
+++ b/Lib/regsub.py
@@ -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: