/external/python/jinja/src/jinja2/ |
D | debug.py | 21 _, exc_value, tb = sys.exc_info() 23 if isinstance(exc_value, TemplateSyntaxError) and not exc_value.translated: 24 exc_value.translated = True 25 exc_value.source = source 28 exc_value.with_traceback(None) 32 exc_value, None, exc_value.filename or "<unknown>", exc_value.lineno 53 fake_tb = fake_traceback(exc_value, tb, template.filename, lineno) 66 return exc_value.with_traceback(tb_next) 69 def fake_traceback(exc_value, tb, filename, lineno): argument 93 "__jinja_exception__": exc_value,
|
/external/chromium-trace/catapult/common/py_utils/py_utils/ |
D | lock.py | 87 except pywintypes.error as exc_value: 88 if exc_value[0] == 33: 90 (target_file.name, exc_value[2])) 99 except pywintypes.error as exc_value: 100 if exc_value[0] == 158: 112 except IOError as exc_value: 113 if exc_value[0] == 11 or exc_value[0] == 35: 115 (target_file.name, exc_value[1]))
|
/external/python/cpython3/Lib/ |
D | traceback.py | 468 def __init__(self, exc_type, exc_value, exc_traceback, *, limit=None, argument 476 _seen.add(id(exc_value)) 479 if (exc_value and exc_value.__cause__ is not None 480 and id(exc_value.__cause__) not in _seen): 482 type(exc_value.__cause__), 483 exc_value.__cause__, 484 exc_value.__cause__.__traceback__, 491 if (exc_value and exc_value.__context__ is not None 492 and id(exc_value.__context__) not in _seen): 494 type(exc_value.__context__), [all …]
|
D | py_compile.py | 46 def __init__(self, exc_type, exc_value, file, msg=''): argument 50 exc_type, exc_value)) 53 errmsg = "Sorry: %s: %s" % (exc_type_name,exc_value) 55 Exception.__init__(self,msg or errmsg,exc_type_name,exc_value,file) 58 self.exc_value = exc_value
|
/external/libchrome/third_party/jinja2/ |
D | debug.py | 83 def __init__(self, exc_type, exc_value, frames): argument 86 self.exc_value = exc_value 99 lines = traceback.format_exception(self.exc_type, self.exc_value, 114 return isinstance(self.exc_value, TemplateSyntaxError) 119 return self.exc_type, self.exc_value, self.frames[0] 129 return self.exc_type, self.exc_value, tb 134 exc_type, exc_value, tb = exc_info 135 if isinstance(exc_value, TemplateSyntaxError): 136 exc_info = translate_syntax_error(exc_value, source_hint) 230 exc_type, exc_value, tb = exc_info
|
/external/python/cpython2/Lib/ |
D | py_compile.py | 45 def __init__(self, exc_type, exc_value, file, msg=''): argument 48 tbtext = ''.join(traceback.format_exception_only(exc_type, exc_value)) 51 errmsg = "Sorry: %s: %s" % (exc_type_name,exc_value) 53 Exception.__init__(self,msg or errmsg,exc_type_name,exc_value,file) 56 self.exc_value = exc_value
|
D | SimpleXMLRPCServer.py | 270 exc_type, exc_value, exc_tb = sys.exc_info() 272 xmlrpclib.Fault(1, "%s:%s" % (exc_type, exc_value)), 371 exc_type, exc_value, exc_tb = sys.exc_info() 374 'faultString' : "%s:%s" % (exc_type, exc_value)} 635 exc_type, exc_value = sys.exc_info()[:2] 637 xmlrpclib.Fault(1, "%s:%s" % (exc_type, exc_value)),
|
/external/python/cpython3/Python/ |
D | errors.c | 104 PyObject *exc_value; in _PyErr_SetObject() local 117 exc_value = _PyErr_GetTopmostException(tstate)->exc_value; in _PyErr_SetObject() 118 if (exc_value != NULL && exc_value != Py_None) { in _PyErr_SetObject() 120 Py_INCREF(exc_value); in _PyErr_SetObject() 132 Py_DECREF(exc_value); in _PyErr_SetObject() 143 if (exc_value != value) { in _PyErr_SetObject() 144 PyObject *o = exc_value, *context; in _PyErr_SetObject() 153 PyException_SetContext(value, exc_value); in _PyErr_SetObject() 156 Py_DECREF(exc_value); in _PyErr_SetObject() 443 *p_value = exc_info->exc_value; in _PyErr_GetExcInfo() [all …]
|
/external/python/cpython3/Modules/ |
D | atexitmodule.c | 74 PyObject *exc_type = NULL, *exc_value, *exc_tb, *r; in atexit_callfuncs() local 100 Py_XDECREF(exc_value); in atexit_callfuncs() 103 PyErr_Fetch(&exc_type, &exc_value, &exc_tb); in atexit_callfuncs() 106 PyErr_NormalizeException(&exc_type, &exc_value, &exc_tb); in atexit_callfuncs() 107 PyErr_Display(exc_type, exc_value, exc_tb); in atexit_callfuncs() 115 PyErr_Restore(exc_type, exc_value, exc_tb); in atexit_callfuncs()
|
/external/python/asn1crypto/tests/ |
D | _unittest_compat.py | 126 def __exit__(self, exc_type, exc_value, tb): argument 137 self.exception = exc_value # store for later retrieval 142 if not expected_regexp.search(str(exc_value)): 145 (expected_regexp.pattern, str(exc_value))
|
/external/python/cpython3/Lib/xmlrpc/ |
D | server.py | 273 exc_type, exc_value, exc_tb = sys.exc_info() 276 Fault(1, "%s:%s" % (exc_type, exc_value)), 281 exc_type = exc_value = exc_tb = None 372 exc_type, exc_value, exc_tb = sys.exc_info() 376 'faultString' : "%s:%s" % (exc_type, exc_value)} 380 exc_type = exc_value = exc_tb = None 641 exc_type, exc_value = sys.exc_info()[:2] 644 Fault(1, "%s:%s" % (exc_type, exc_value)), 649 exc_type = exc_value = None
|
/external/python/cpython3/Modules/_ssl/ |
D | debughelpers.c | 76 PyErr_Fetch(&ssl_obj->exc_type, &ssl_obj->exc_value, &ssl_obj->exc_tb); in _PySSL_msg_callback() 144 PyErr_Fetch(&ssl_obj->exc_type, &ssl_obj->exc_value, in _PySSL_keylog_callback() 162 PyErr_Fetch(&ssl_obj->exc_type, &ssl_obj->exc_value, &ssl_obj->exc_tb); in _PySSL_keylog_callback()
|
/external/scapy/scapy/ |
D | autorun.py | 35 exc_type, exc_value, exc_tb = sys.exc_info() 36 if isinstance(exc_value, StopAutorun): 37 raise exc_value
|
/external/libxml2/doc/ |
D | index.py | 226 print sys.exc_type, sys.exc_value 267 print sys.exc_type, sys.exc_value 316 print sys.exc_type, sys.exc_value 356 print sys.exc_type, sys.exc_value 439 print sys.exc_type, sys.exc_value 616 print sys.exc_type, sys.exc_value 665 print sys.exc_type, sys.exc_value 1018 print sys.exc_type, sys.exc_value 1184 print sys.exc_type, sys.exc_value 1210 print sys.exc_type, sys.exc_value [all …]
|
D | queries.py | 48 print sys.exc_type, sys.exc_value 107 print sys.exc_type, sys.exc_value
|
/external/python/cpython3/Lib/multiprocessing/dummy/ |
D | connection.py | 36 def __exit__(self, exc_type, exc_value, exc_tb): argument 74 def __exit__(self, exc_type, exc_value, exc_tb): argument
|
/external/tensorflow/tensorflow/python/framework/ |
D | memory_checker.py | 85 def __exit__(self, exc_type, exc_value, traceback): argument 88 self._trace_me.__exit__(exc_type, exc_value, traceback)
|
D | python_api_parameter_converter.cc | 76 PyObject* exc_value; in RaiseTypeError() local 78 PyErr_Fetch(&exc_type, &exc_value, &exc_traceback); in RaiseTypeError() 79 PyErr_Format(PyExc_TypeError, "%s: %S", message.c_str(), exc_value); in RaiseTypeError() 81 Py_XDECREF(exc_value); in RaiseTypeError()
|
/external/python/cpython3/Include/internal/ |
D | pycore_pyerrors.h | 21 v = exc_state->exc_value; in _PyErr_ClearExcState() 24 exc_state->exc_value = NULL; in _PyErr_ClearExcState()
|
/external/python/cpython3/Lib/ctypes/test/ |
D | test_random_things.py | 46 self.assertIsInstance(cm.unraisable.exc_value, exc_type) 48 self.assertEqual(str(cm.unraisable.exc_value), exc_msg)
|
/external/python/cpython3/Lib/test/ |
D | audit-tests.py | 247 def excepthook(exc_type, exc_value, exc_tb): argument 249 sys.__excepthook__(exc_type, exc_value, exc_tb) 274 print(event, repr(args[1].exc_value), args[1].err_msg)
|
/external/autotest/client/cros/networking/ |
D | shill_context.py | 78 def __exit__(self, exc_type, exc_value, traceback): argument 161 def __exit__(self, exc_type, exc_value, traceback): argument
|
/external/llvm-project/lldb/third_party/Python/module/unittest2/unittest2/ |
D | case.py | 140 def __exit__(self, exc_type, exc_value, tb): argument 151 self.exception = exc_value # store for later retrieval 158 if not expected_regexp.search(str(exc_value)): 161 (expected_regexp.pattern, str(exc_value))) 1078 except expected_exception as exc_value: 1081 if not expected_regexp.search(str(exc_value)): 1084 (expected_regexp.pattern, str(exc_value)))
|
/external/python/cpython3/Lib/idlelib/ |
D | stackviewer.py | 137 exc_type, exc_value, exc_tb = sys.exc_info() 140 sys.last_value = exc_value
|
/external/python/cpython2/Lib/idlelib/ |
D | StackViewer.py | 135 exc_type, exc_value, exc_tb = sys.exc_info() 139 sys.last_value = exc_value
|