'Common initialization for all BackgroundJob objects'

def _init(self):

    for attr in ['call', 'strform']:
        assert hasattr(self, attr), ('Missing    attribute    <%s>' % attr)
    self.num = None
    self.status = BackgroundJobBase.stat_created
    self.stat_code = BackgroundJobBase.stat_created_c
    self.finished = False
    self.result = '<BackgroundJob    has    not    completed>'
    try:
        make_tb = get_ipython().InteractiveTB.text
    except:
        make_tb = AutoFormattedTB(mode='Context', color_scheme='NoColor', tb_offset=1).text
    self._make_tb = (lambda : make_tb(None, None, None))
    self._tb = None
    threading.Thread.__init__(self)
