Home
last modified time | relevance | path

Searched refs:exc_details (Results 1 – 6 of 6) sorted by relevance

/external/python/cpython3/Lib/
Dcontextlib.py482 def __exit__(self, *exc_details): argument
483 received_exc = exc_details[0] is not None
510 if cb(*exc_details):
513 exc_details = (None, None, None)
517 _fix_exception_context(new_exc_details[1], exc_details[1])
519 exc_details = new_exc_details
524 fixed_ctx = exc_details[1].__context__
525 raise exc_details[1]
527 exc_details[1].__context__ = fixed_ctx
632 async def __aexit__(self, *exc_details): argument
[all …]
Dzipimport.py588 exc_details = {
594 flags = _bootstrap_external._classify_pyc(data, fullname, exc_details)
612 data, source_hash, fullname, exc_details)
/external/python/cpython3/Lib/test/
Dtest_contextlib_async.py311 def __exit__(self, *exc_details): argument
312 return self.run_coroutine(self.__aexit__(*exc_details))
370 async def _suppress_exc(*exc_details): argument
381 async def __aexit__(self, *exc_details): argument
382 await self.check_exc(*exc_details)
406 async def __aexit__(self, *exc_details): argument
430 async def suppress_exc(*exc_details): argument
432 saved_details = exc_details
Dtest_contextlib.py614 def _suppress_exc(*exc_details): argument
625 def __exit__(self, *exc_details): argument
626 self.check_exc(*exc_details)
648 def __exit__(self, *exc_details): argument
706 def __exit__(self, *exc_details): argument
715 def __exit__(self, *exc_details): argument
724 def __exit__(self, *exc_details): argument
725 type(self).saved_details = exc_details
752 def suppress_exc(*exc_details): argument
754 saved_details = exc_details
[all …]
/external/python/cpython3/Lib/importlib/
D_bootstrap_external.py493 def _classify_pyc(data, name, exc_details): argument
513 raise ImportError(message, **exc_details)
522 raise ImportError(message, **exc_details)
527 exc_details): argument
548 raise ImportError(message, **exc_details)
551 raise ImportError(f'bytecode is stale for {name!r}', **exc_details)
554 def _validate_hash_pyc(data, source_hash, name, exc_details): argument
574 **exc_details,
878 exc_details = {
883 flags = _classify_pyc(data, fullname, exc_details)
[all …]
/external/python/cpython3/Doc/library/
Dcontextlib.rst593 def __exit__(self, *exc_details):