# HG changeset patch # User Brodie Rao # Date 1266122060 18000 # Node ID 59f8fff4f8870e64a7ab5aa4d248cd09662262fd # Parent 63a9bfad50ff9f6c8e1628d729a97d4be39b206e progress: simplify spacejoin() diff -r 63a9bfad50ff -r 59f8fff4f887 hgext/progress.py --- 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):