Searched defs:exc_info (Results 1 - 5 of 5) sorted by relevance

/external/python/cpython2/Lib/lib2to3/fixes/
H A Dfix_sys_exc.py3 sys.exc_type -> sys.exc_info()[0]
4 sys.exc_value -> sys.exc_info()[1]
5 sys.exc_traceback -> sys.exc_info()[2]
15 # This order matches the ordering of sys.exc_info().
16 exc_info = [u"exc_type", u"exc_value", u"exc_traceback"] variable in class:FixSysExc
20 """ % '|'.join("'%s'" % e for e in exc_info)
24 index = Number(self.exc_info.index(sys_attr.value))
26 call = Call(Name(u"exc_info"), prefix=sys_attr.prefix)
/external/python/cpython3/Lib/lib2to3/fixes/
H A Dfix_sys_exc.py3 sys.exc_type -> sys.exc_info()[0]
4 sys.exc_value -> sys.exc_info()[1]
5 sys.exc_traceback -> sys.exc_info()[2]
15 # This order matches the ordering of sys.exc_info().
16 exc_info = ["exc_type", "exc_value", "exc_traceback"] variable in class:FixSysExc
20 """ % '|'.join("'%s'" % e for e in exc_info)
24 index = Number(self.exc_info.index(sys_attr.value))
26 call = Call(Name("exc_info"), prefix=sys_attr.prefix)
/external/libmojo/third_party/jinja2/
H A Ddebug.py117 def exc_info(self): member in class:ProcessedTraceback
123 """Standard python exc_info for re-raising"""
132 def make_traceback(exc_info, source_hint=None):
133 """Creates a processed traceback object from the exc_info."""
134 exc_type, exc_value, tb = exc_info
136 exc_info = translate_syntax_error(exc_value, source_hint)
140 return translate_exception(exc_info, initial_skip)
147 exc_info = (error.__class__, error, None)
151 return fake_exc_info(exc_info, filename, error.lineno)
154 def translate_exception(exc_info, initial_ski
[all...]
/external/python/cpython3/Modules/
H A Dfaulthandler.c366 faulthandler_exc_handler(struct _EXCEPTION_POINTERS *exc_info) argument
369 DWORD code = exc_info->ExceptionRecord->ExceptionCode;
370 DWORD flags = exc_info->ExceptionRecord->ExceptionFlags;
/external/python/cpython3/Lib/unittest/test/testmock/
H A Dtestpatch.py1053 err = sys.exc_info()
1680 exc_info = None, None, None variable in class:PatchTest.test_patch_propogrates_exc_on_exit.holder
1685 holder.exc_info = etype, val, tb
1700 self.assertIs(holder.exc_info[0], RuntimeError)
1701 self.assertIsNotNone(holder.exc_info[1],
1703 self.assertIsNotNone(holder.exc_info[2],

Completed in 418 milliseconds