summaryrefslogtreecommitdiff
path: root/Lib/string.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1992-11-26 09:17:19 +0000
committerGuido van Rossum <guido@python.org>1992-11-26 09:17:19 +0000
commit2ec3676df1d19dae0fab286c2b7049b13ffbd08a (patch)
tree97da7e7f67ca99491939ab379614cd64a4f51505 /Lib/string.py
parent8d02109114102e436b8ef11fcf3e717370c79f78 (diff)
downloadcpython-2ec3676df1d19dae0fab286c2b7049b13ffbd08a.tar.gz
* mainloop.py: added facility for calling select(). Also added
embryonic facility for pseudo-modal dialogs. * stdwinevents.py: added modifier masks for key/mouse events * renamed exceptions in nntplib.py * Changed string.join() to call string.joinfields() to profit of strop.joinfields()
Diffstat (limited to 'Lib/string.py')
-rw-r--r--Lib/string.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/Lib/string.py b/Lib/string.py
index b4e0d5e766..aed3eafb54 100644
--- a/Lib/string.py
+++ b/Lib/string.py
@@ -82,10 +82,7 @@ def splitfields(s, sep):
# Join words with spaces between them
def join(words):
- res = ''
- for w in words:
- res = res + (' ' + w)
- return res[1:]
+ return joinfields(words, ' ')
# Join fields with separator
def joinfields(words, sep):