From 79f8c0e65448f637160fdfb38faa9c4b7d1fdf2b Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Fri, 5 Jun 2020 00:17:59 +0200 Subject: [PATCH] batcave: fix the fedmsg hook Since we're calling the line right after the len() of the variable we can't use map as in py3 a map as no length. So instead we'll just build the list right now. Signed-off-by: Pierre-Yves Chibon --- roles/batcave/files/fedmsg-announce-commits.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/batcave/files/fedmsg-announce-commits.py b/roles/batcave/files/fedmsg-announce-commits.py index 60c73968f9..e897c53952 100644 --- a/roles/batcave/files/fedmsg-announce-commits.py +++ b/roles/batcave/files/fedmsg-announce-commits.py @@ -135,7 +135,7 @@ for line in lines: agent=getlogin(), ) - commits = map(_build_commit, revs) + commits = [_build_commit(rev) for rev in revs] print("* Publishing information for %i commits" % len(commits)) for commit in reversed(commits):