Merge "Py3 compat changes for diff view"
This commit is contained in:
commit
1fecc3325a
|
@ -324,11 +324,13 @@ class BaseDiffView(urwid.WidgetWrap, mywid.Searchable):
|
||||||
# Handle comments that landed outside our default diff context
|
# Handle comments that landed outside our default diff context
|
||||||
lastlen = 0
|
lastlen = 0
|
||||||
while comment_lists:
|
while comment_lists:
|
||||||
if len(comment_lists.keys()) == lastlen:
|
comment_lists_keys = list(comment_lists.keys())
|
||||||
|
if len(comment_lists_keys) == lastlen:
|
||||||
self.log.error("Unable to display all comments: %s" % comment_lists)
|
self.log.error("Unable to display all comments: %s" % comment_lists)
|
||||||
return
|
return
|
||||||
lastlen = len(comment_lists.keys())
|
comment_lists_keys = list(comment_lists.keys())
|
||||||
key = comment_lists.keys()[0]
|
lastlen = len(comment_lists_keys)
|
||||||
|
key = comment_lists_keys[0]
|
||||||
kind, lineno, path = key.split('-', 2)
|
kind, lineno, path = key.split('-', 2)
|
||||||
lineno = int(lineno)
|
lineno = int(lineno)
|
||||||
if kind.startswith('old'):
|
if kind.startswith('old'):
|
||||||
|
|
Loading…
Reference in New Issue