From 6796f29f1805136c90a3431ba07a7362ad0a1e06 Mon Sep 17 00:00:00 2001 From: Catalin Marinas Date: Tue, 15 May 2007 18:10:02 +0100 Subject: [PATCH] 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 --- stgit/commands/uncommit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.11.4.GIT