Use list comprehension in uncommit.py for Python 2.3