summaryrefslogtreecommitdiffstats
path: root/Lib/string.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1992-11-26 09:17:19 (GMT)
committerGuido van Rossum <guido@python.org>1992-11-26 09:17:19 (GMT)
commit18fc5696c8be30b56485a20dc48f7f683b472f79 (patch)
tree97da7e7f67ca99491939ab379614cd64a4f51505 /Lib/string.py
parentc89705d6975ffb1e4a3764f4f36bab339f969e8f (diff)
downloadcpython-18fc5696c8be30b56485a20dc48f7f683b472f79.zip
cpython-18fc5696c8be30b56485a20dc48f7f683b472f79.tar.gz
cpython-18fc5696c8be30b56485a20dc48f7f683b472f79.tar.bz2
* 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 b4e0d5e..aed3eaf 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):