/external/python/cpython2/Tools/pybench/ |
D | With.py | 13 def __exit__(self, exc, val, tb): member in WithFinally.ContextManager 59 def __exit__(self): member in TryFinally.ContextManager 71 finally: cm.__exit__() 75 finally: cm.__exit__() 79 finally: cm.__exit__() 83 finally: cm.__exit__() 87 finally: cm.__exit__() 91 finally: cm.__exit__() 95 finally: cm.__exit__() 99 finally: cm.__exit__() [all …]
|
/external/python/cpython2/Lib/test/ |
D | test_with.py | 25 def __exit__(self, type, value, traceback): member in MockContextManager 28 return GeneratorContextManager.__exit__(self, type, 70 if not self.__exit__(*sys.exc_info()): 74 def __exit__(self, *exc_info): member in Nested 81 if mgr.__exit__(*ex): 101 def __exit__(self, *exc_info): member in MockNested 104 return Nested.__exit__(self, *exc_info) 115 def __exit__(self, type, value, traceback): member in FailureTestCase.testEnterAttributeError.LacksEnter 164 def __exit__(self, *args): member in FailureTestCase.testEnterThrows.EnterThrows 179 def __exit__(self, *args): member in FailureTestCase.testExitThrows.ExitThrows [all …]
|
/external/python/cpython3/Lib/test/ |
D | test_with.py | 24 def __exit__(self, type, value, traceback): member in MockContextManager 27 return _GeneratorContextManager.__exit__(self, type, 69 if not self.__exit__(*sys.exc_info()): 73 def __exit__(self, *exc_info): member in Nested 80 if mgr.__exit__(*ex): 100 def __exit__(self, *exc_info): member in MockNested 103 return Nested.__exit__(self, *exc_info) 114 def __exit__(self, type, value, traceback): member in FailureTestCase.testEnterAttributeError1.LacksEnter 167 def __exit__(self, *args): member in FailureTestCase.testEnterThrows.EnterThrows 182 def __exit__(self, *args): member in FailureTestCase.testExitThrows.ExitThrows [all …]
|
D | test_contextlib.py | 17 def __exit__(self, *args): member in TestAbstractContextManager.test_enter.DefaultEnter 18 super().__exit__(*args) 34 def __exit__(self, exc_type, exc_value, traceback): member in TestAbstractContextManager.test_structural_subclassing.ManagerFromScratch 40 def __exit__(self, *args): member in TestAbstractContextManager.test_structural_subclassing.DefaultEnter 41 super().__exit__(*args) 51 __exit__ = None variable in TestAbstractContextManager.test_structural_subclassing.NoExit 95 self.assertFalse(ctx.__exit__(TypeError, TypeError("foo"), None)) 107 RuntimeError, ctx.__exit__, TypeError, TypeError("foo"), None 390 def __exit__(self, *exc): member in mycontext 490 def __exit__(self, *exc): member in TestContextDecorator.test_typo_enter.mycontext [all …]
|
/external/python/cpython3/Lib/ |
D | contextlib.py | 26 def __exit__(self, exc_type, exc_value, traceback): member in AbstractContextManager 121 def __exit__(self, type, value, traceback): member in _GeneratorContextManager 302 def __exit__(self, *exc_info): member in closing 320 def __exit__(self, exctype, excinst, exctb): member in _RedirectStream 363 def __exit__(self, exctype, excinst, exctb): member in suppress 411 exit_method = _cb_type.__exit__ 428 _exit = _cm_type.__exit__ 470 def __exit__(self, *exc_details): member in ExitStack 521 self.__exit__(None, None, None) 675 def __exit__(self, *excinfo): member in nullcontext
|
/external/tensorflow/tensorflow/python/autograph/core/ |
D | function_wrappers.py | 83 def __exit__(self, exc_type, exc_val, exc_tb): member in FunctionScope 85 self.autograph_ctx.__exit__(exc_type, exc_val, exc_tb) 87 self.name_scope.__exit__(exc_type, exc_val, exc_tb) 89 self.autodeps_scope.__exit__(exc_type, exc_val, exc_tb)
|
D | ag_ctx.py | 78 def __exit__(self, unused_type, unused_value, unused_traceback): member in ControlStatusCtx 89 def __exit__(self, unused_type, unused_value, unused_traceback): member in NullCtx
|
/external/python/cpython2/Lib/ |
D | contextlib.py | 21 def __exit__(self, type, value, traceback): member in GeneratorContextManager 110 exit = mgr.__exit__ 153 def __exit__(self, *exc_info): member in closing
|
/external/skia/infra/bots/ |
D | utils.py | 35 def __exit__(self, t, v, tb): member in print_timings 53 def __exit__(self, t, v, tb): member in tmp_dir 73 def __exit__(self, t, v, tb): member in chdir 110 def __exit__(self, exc_type, _value, _traceback): member in git_branch
|
/external/skqp/infra/bots/ |
D | utils.py | 33 def __exit__(self, t, v, tb): member in print_timings 51 def __exit__(self, t, v, tb): member in tmp_dir 71 def __exit__(self, t, v, tb): member in chdir 108 def __exit__(self, exc_type, _value, _traceback): member in git_branch
|
/external/chromium-trace/catapult/common/py_utils/py_utils/ |
D | contextlib_ext.py | 17 def __exit__(self, exc_type, exc_val, exc_tb): member in _OptionalContextManager 19 return self._manager.__exit__(exc_type, exc_val, exc_tb)
|
/external/python/mock/mock/tests/ |
D | testwith.py | 75 mock.__exit__ = Mock() 76 mock.__exit__.return_value = False 81 mock.__exit__.assert_called_with(None, None, None) 91 self.assertTrue(mock.__exit__.called) 166 call().__exit__(None, None, None)] 180 call().__exit__(None, None, None), 182 call().__exit__(None, None, None)]
|
/external/python/cpython3/Lib/unittest/test/testmock/ |
D | testwith.py | 70 mock.__exit__ = Mock() 71 mock.__exit__.return_value = False 76 mock.__exit__.assert_called_with(None, None, None) 86 self.assertTrue(mock.__exit__.called) 161 call().__exit__(None, None, None)] 175 call().__exit__(None, None, None), 177 call().__exit__(None, None, None)]
|
/external/tensorflow/tensorflow/python/distribute/parallel_device/ |
D | parallel_device.py | 167 def __exit__(self, typ, exc, tb): member in ParallelDevice 168 self._device_scope.__exit__(typ, exc, tb) 169 self._saving_scope.__exit__(typ, exc, tb)
|
/external/skqp/tools/skpbench/ |
D | _hardware_android.py | 60 def __exit__(self, exception_type, exception_value, traceback): member in HardwareAndroid 61 Hardware.__exit__(self, exception_type, exception_value, traceback)
|
/external/autotest/client/cros/networking/ |
D | apmanager_xmlrpc_server.py | 36 def __exit__(self, exception, value, traceback): member in ApmanagerXmlRpcDelegate 37 super(ApmanagerXmlRpcDelegate, self).__exit__(exception, value, traceback)
|
D | shill_context.py | 78 def __exit__(self, exc_type, exc_value, traceback): member in AllowedTechnologiesContext 161 def __exit__(self, exc_type, exc_value, traceback): member in ServiceAutoConnectContext 231 def __exit__(self, exception, value, traceback): member in StaticIPContext
|
/external/tensorflow/tensorflow/python/framework/experimental/ |
D | tape.py | 55 def __exit__(self, typ, value, traceback): member in GradientTape 56 self._ctx_manager.__exit__(typ, value, traceback)
|
/external/python/cpython2/Doc/library/ |
D | contextlib.rst | 25 create a class or separate :meth:`__enter__` and :meth:`__exit__` methods. 83 Note that if the :meth:`__exit__` method of one of the nested context managers 86 :meth:`__exit__` method of one of the nested managers raises an exception, any 88 :meth:`__exit__` methods of any remaining outer context managers. In general, 89 :meth:`__exit__` methods should avoid raising exceptions, and in particular they 101 raises an exception that is caught and suppressed by the :meth:`__exit__` method
|
/external/python/cpython3/Lib/multiprocessing/dummy/ |
D | connection.py | 36 def __exit__(self, exc_type, exc_value, exc_tb): member in Listener 74 def __exit__(self, exc_type, exc_value, exc_tb): member in Connection
|
/external/tensorflow/tensorflow/python/framework/ |
D | memory_checker.py | 85 def __exit__(self, exc_type, exc_value, traceback): member in MemoryChecker 88 self._trace_me.__exit__(exc_type, exc_value, traceback)
|
/external/autotest/client/cros/cellular/ |
D | test_environment.py | 130 self.__exit__(*sys.exc_info()) 133 self.__exit__(*sys.exc_info()) 137 def __exit__(self, exception, value, traceback): member in CellularTestEnvironment 141 return self._nested.__exit__(exception, value, traceback)
|
/external/python/cpython2/Lib/multiprocessing/ |
D | synchronize.py | 91 def __exit__(self, *args): member in SemLock 92 return self._semlock.__exit__(*args) 217 def __exit__(self, *args): member in Condition 218 return self._lock.__exit__(*args)
|
/external/chromium-trace/catapult/devil/devil/android/ |
D | device_temp_file.py | 78 def __exit__(self, type, value, traceback): member in DeviceTempFile 120 def __exit__(self, exc_type, exc_val, exc_tb): member in NamedDeviceTemporaryDirectory
|
/external/skia/tools/skpbench/ |
D | _hardware_android.py | 71 def __exit__(self, exception_type, exception_value, traceback): member in HardwareAndroid 72 Hardware.__exit__(self, exception_type, exception_value, traceback)
|