From: Catalin Marinas Date: Tue, 15 May 2007 17:10:02 +0000 (+0100) Subject: Use list comprehension in uncommit.py for Python 2.3 X-Git-Tag: v0.13~73 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/stgit/commitdiff_plain/6796f29f1805136c90a3431ba07a7362ad0a1e06 Use list comprehension in uncommit.py for Python 2.3 The (None for ...) is not allowed in Python 2.3. Changed to [...] Signed-off-by: Catalin Marinas --- diff --git a/stgit/commands/uncommit.py b/stgit/commands/uncommit.py index de6a37c..d5f64da 100644 --- a/stgit/commands/uncommit.py +++ b/stgit/commands/uncommit.py @@ -116,7 +116,7 @@ def func(parser, options, args): sys.stdout.flush() for (commit, commit_id, parent), patchname in \ - zip(commits, patchnames or (None for i in xrange(len(commits)))): + zip(commits, patchnames or [None for i in xrange(len(commits))]): author_name, author_email, author_date = \ name_email_date(commit.get_author()) crt_series.new_patch(patchname,