Mercurial > cpython-lru_cache-weakref
diff Lib/string.py @ 1095:ac0828ef68f2 legacy-trunk
* 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()
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Thu, 26 Nov 1992 09:17:19 +0000 |
| parents | db817f3a1c65 |
| children | b120cdd30fbc |
line wrap: on
line diff
--- a/Lib/string.py Thu Nov 26 08:54:07 1992 +0000 +++ b/Lib/string.py Thu Nov 26 09:17:19 1992 +0000 @@ -82,10 +82,7 @@ # 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):
