

def __init__(self, app, context, old_key=None, new_key=None, old='', new=''):
    super(SideDiffCommentEdit, self).__init__([])
    self.app = app
    self.context = context
    self.old_key = old_key
    self.new_key = new_key
    self.old = mywid.MyEdit(edit_text=old, multiline=True, ring=app.ring)
    self.new = mywid.MyEdit(edit_text=new, multiline=True, ring=app.ring)
    self.contents.append((urwid.Text(''), ('given', LN_COL_WIDTH, False)))
    if (context.old_file_key and ((context.old_ln is not None) or context.header)):
        self.contents.append((urwid.AttrMap(self.old, 'draft-comment'), ('weight', 1, False)))
    else:
        self.contents.append((urwid.Text(''), ('weight', 1, False)))
    self.contents.append((urwid.Text(''), ('given', LN_COL_WIDTH, False)))
    if (context.new_file_key and ((context.new_ln is not None) or context.header)):
        new_editable.contents.append((urwid.AttrMap(self.new, 'draft-comment'), ('weight', 1, False)))
        new_editable = True
    else:
        self.contents.append((urwid.Text(''), ('weight', 1, False)))
        new_editable = False
    if new_editable:
        self.focus_position = 3
    else:
        self.focus_position = 1

dataset/ETHPy150Open openstack/gertty/gertty/view/side_diff.py SideDiffCommentEdit.__init__/VarMisuse@267/321 `self`->`new_editable`