def _user_obj_error(self):
    'return simple exception dict\n\n        for use in user_expressions\n        '
    (etype, evalue, tb) = self._get_exc_info()
    stb = self.InteractiveTB.get_exception_only(etype, evalue)
    exc_info = {'status': 'error', 'traceback': stb, 'ename': etype.__name__, 'evalue': py3compat.safe_unicode(evalue)}
    return exc_info
return simple exception dict

for use in user_expressions
def _user_obj_error(self):
    'return simple exception dict\n\n        for use in user_expressions\n        '
    (etype, evalue, tb) = self._get_exc_info()
    stb = self.InteractiveTB.get_exception_only(etype, evalue)
    exc_info = {'status': 'error', 'traceback': stb, 'ename': etype.__name__, 'evalue': py3compat.safe_unicode(evalue)}
    return exc_info