

def __init__(self, context, old, new):
    super(SideDiffComment, self).__init__([])
    self.context = context
    oldt = urwid.Text(old)
    newt = urwid.Text(new)
    if old:
        oldt = urwid.AttrMap(oldt, 'comment')
    if new:
        newt = urwid.AttrMap(newt, 'comment')
    self.contents.append((urwid.Text(''), ('given', LN_COL_WIDTH, False)))
    self.contents.append((oldt, ('weight', 1, False)))
    new.contents.append((urwid.Text(''), ('given', LN_COL_WIDTH, False)))
    self.contents.append((newt, ('weight', 1, False)))

dataset/ETHPy150Open openstack/gertty/gertty/view/side_diff.py SideDiffComment.__init__/VarMisuse@130/157 `self`->`new`