From f2fe290873e5bd8571d8839be0a63fca290d52bf Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: May 28 2018 08:01:57 +0000 Subject: Iterate over a list instead of an iterator to avoid changing dict in place Changing the dict in place makes py3 unhappy Signed-off-by: Pierre-Yves Chibon --- diff --git a/pagure/lib/tasks.py b/pagure/lib/tasks.py index 26fcf55..6ba3fad 100644 --- a/pagure/lib/tasks.py +++ b/pagure/lib/tasks.py @@ -852,7 +852,7 @@ def commits_author_stats(self, session, repopath): author = commit.author.name stats[(author, email)] += 1 - for (name, email), val in stats.items(): + for (name, email), val in list(stats.items()): if not email: # Author email is missing in the git commit. continue