

def makeFileHeader(self, diff, comment_lists):
    context = self.makeContext(diff, None, None, header=True)
    lines = []
    lines.append(SideFileHeader(self.app, context, diff.oldname, diff.newname, callback=self.onSelect))
    key = ('old-None-%s' % (diff.oldname,))
    old_list = old_comment_key.pop(key, [])
    key = ('new-None-%s' % (diff.newname,))
    new_list = comment_lists.pop(key, [])
    while (old_list or new_list):
        old_comment_key = new_comment_key = None
        old_comment = new_comment = ''
        if old_list:
            (old_comment_key, old_comment) = old_list.pop(0)
        if new_list:
            (new_comment_key, new_comment) = new_list.pop(0)
        lines.append(SideDiffComment(context, old_comment, new_comment))
    key = ('olddraft-None-%s' % (diff.oldname,))
    old_list = comment_lists.pop(key, [])
    key = ('newdraft-None-%s' % (diff.newname,))
    new_list = comment_lists.pop(key, [])
    while (old_list or new_list):
        old_comment_key = new_comment_key = None
        old_comment = new_comment = ''
        if old_list:
            (old_comment_key, old_comment) = old_list.pop(0)
        if new_list:
            (new_comment_key, new_comment) = new_list.pop(0)
        lines.append(SideDiffCommentEdit(self.app, context, old_comment_key, new_comment_key, old_comment, new_comment))
    return lines

dataset/ETHPy150Open openstack/gertty/gertty/view/side_diff.py SideDiffView.makeFileHeader/VarMisuse@79/98 `comment_lists`->`old_comment_key`