changeset 8180:c4c2df844424

py3: zip will return an iterator - apply list before reversing
author Mads Kiilerich <mads@kiilerich.com>
date Thu, 26 Dec 2019 04:07:03 +0100
parents 756e46bd926b
children 21f7b699d467
files kallithea/lib/vcs/backends/git/inmemory.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/lib/vcs/backends/git/inmemory.py	Mon Nov 25 04:15:17 2019 +0100
+++ b/kallithea/lib/vcs/backends/git/inmemory.py	Thu Dec 26 04:07:03 2019 +0100
@@ -113,7 +113,7 @@
                 except KeyError:
                     break
             # Cut down the blob and all rotten trees on the way back...
-            for path, tree in reversed(zip(paths, trees)):
+            for path, tree in reversed(list(zip(paths, trees))):
                 del tree[path]
                 if tree:
                     # This tree still has elements - don't remove it or any