python3: fixed various code issues

- iterators
- use of u''
This commit is contained in:
RhodeCode Admin 2023-03-20 20:51:25 +01:00
parent 7556b374d5
commit 34af9cfa2f
39 changed files with 182 additions and 188 deletions

View file

@ -753,7 +753,7 @@ class RepoPullRequestsView(RepoAppView, DataGridAppView):
c.commit_changes = []
def mark(cs, fw):
return list(h.itertools.izip_longest([], cs, fillvalue=fw))
return list(h.itertools.zip_longest([], cs, fillvalue=fw))
for c_type, raw_id in mark(commit_changes.added, 'a') \
+ mark(commit_changes.removed, 'r') \