hgext/progress.py
changeset 10452 59f8fff4f887
parent 10450 b4fd900569b1
child 10453 7edc649f9f7e
--- a/hgext/progress.py	Sat Feb 13 23:20:17 2010 -0600
+++ b/hgext/progress.py	Sat Feb 13 23:34:20 2010 -0500
@@ -47,13 +47,7 @@
 from mercurial import util
 
 def spacejoin(*args):
-    ret = ''
-    for s in args:
-        if s:
-            if ret:
-                ret += ' '
-            ret += s
-    return ret
+    return ' '.join(s for s in args if s)
 
 class progbar(object):
     def __init__(self, ui):