/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/fixes/ |
fix_sys_exc.py | 3 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/cpython2/Lib/lib2to3/fixes/ |
fix_sys_exc.py | 3 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/ |
fix_sys_exc.py | 3 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/libchrome/third_party/jinja2/ |
debug.py | 117 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_skip=0) [all...] |
/external/python/cpython3/Python/ |
errors.c | 59 _PyErr_StackItem *exc_info = tstate->exc_info; local 60 while ((exc_info->exc_type == NULL || exc_info->exc_type == Py_None) && 61 exc_info->previous_item != NULL) 63 exc_info = exc_info->previous_item; 65 return exc_info; 359 _PyErr_StackItem *exc_info = _PyErr_GetTopmostException(tstate); local 360 *p_type = exc_info->exc_type [all...] |
ceval.c | 814 _PyErr_StackItem *exc_info; \ 820 exc_info = tstate->exc_info; \ 821 type = exc_info->exc_type; \ 822 value = exc_info->exc_value; \ 823 traceback = exc_info->exc_traceback; \ 824 exc_info->exc_type = POP(); \ 825 exc_info->exc_value = POP(); \ 826 exc_info->exc_traceback = POP(); \ 3390 _PyErr_StackItem *exc_info = tstate->exc_info; local 3991 _PyErr_StackItem *exc_info = _PyErr_GetTopmostException(tstate); local [all...] |
/external/python/cpython3/Include/ |
pystate.h | 244 * are present. Always last element on the stack referred to be exc_info. 250 _PyErr_StackItem *exc_info; member in struct:_ts
|
/external/python/cpython3/Lib/unittest/test/testmock/ |
testpatch.py | 1071 err = sys.exc_info() 1697 exc_info = None, None, None variable in class:PatchTest.test_patch_propogrates_exc_on_exit.holder [all...] |
/external/python/mock/mock/tests/ |
testpatch.py | 1052 err = sys.exc_info() 1683 exc_info = None, None, None variable in class:PatchTest.test_patch_propogrates_exc_on_exit.holder [all...] |