/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 …]
|
D | test_contextlib.py | 53 self.assertFalse(ctx.__exit__(TypeError, TypeError("foo"), None)) 65 RuntimeError, ctx.__exit__, TypeError, TypeError("foo"), None 166 def __exit__(self, *exc_info): member in NestedTestCase.test_nested_right_exception.b
|
D | test_importlib.py | 112 def __exit__(self, *exc_info): member in mock_modules 113 self._uncache.__exit__(None, None, None)
|
D | test_file.py | 118 self.f.__exit__(None, None, None) 127 self.assertEqual(self.f.__exit__(None, None, None), None) 132 self.assertEqual(self.f.__exit__(*sys.exc_info()), None)
|
/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
|
D | tempfile.py | 438 def __exit__(self, exc, value, tb): member in _TemporaryFileWrapper 439 result = self.file.__exit__(exc, value, tb) 443 def __exit__(self, exc, value, tb): member in _TemporaryFileWrapper 444 self.file.__exit__(exc, value, tb) 561 def __exit__(self, exc, value, tb): member in SpooledTemporaryFile
|
/external/skia/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
|
D | git_utils.py | 33 def __exit__(self, exc_type, _value, _traceback): member in GitLocalConfig 84 def __exit__(self, exc_type, _value, _traceback): member in GitBranch
|
/external/autotest/client/cros/cellular/ |
D | environment.py | 41 def __exit__(self, exception, value, traceback): member in EmulatedEnvironment 98 def __exit__(self, exception, value, traceback): member in DefaultCellularTestContext 99 return self._nested.__exit__(exception, value, traceback)
|
D | test_environment.py | 134 self.__exit__(*sys.exc_info()) 137 self.__exit__(*sys.exc_info()) 141 def __exit__(self, exception, value, traceback): member in CellularTestEnvironment 143 return self._nested.__exit__(exception, value, traceback)
|
/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/autotest/client/cros/ |
D | device_jail_utils.py | 39 def __exit__(self, exc_type, exc_val, traceback): member in OSFile 53 def __exit__(self, exc_type, exc_val, traceback): member in ConcurrentFunc 154 def __exit__(self, exc_type, exc_val, traceback): member in JailDevice
|
D | shill_temporary_profile.py | 26 def __exit__(self, exception, value, traceback): member in ShillTemporaryProfile
|
/external/python/cpython2/Doc/library/ |
D | contextlib.rst | 25 create a class or separate :meth:`__enter__` and :meth:`__exit__` methods. 77 Note that if the :meth:`__exit__` method of one of the nested context managers 80 :meth:`__exit__` method of one of the nested managers raises an exception, any 82 :meth:`__exit__` methods of any remaining outer context managers. In general, 83 :meth:`__exit__` methods should avoid raising exceptions, and in particular they 95 raises an exception that is caught and suppressed by the :meth:`__exit__` method
|
/external/skia/tools/skpbench/ |
D | _hardware_android.py | 58 def __exit__(self, exception_type, exception_value, traceback): member in HardwareAndroid 59 Hardware.__exit__(self, exception_type, exception_value, traceback)
|
D | _hardware_pixel_c.py | 21 def __exit__(self, exception_type, exception_value, exception_traceback): member in HardwarePixelC 22 HardwareAndroid.__exit__(self, exception_type,
|
D | _hardware_nexus_6p.py | 20 def __exit__(self, exception_type, exception_value, exception_traceback): member in HardwareNexus6P 21 HardwareAndroid.__exit__(self, exception_type,
|
/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)
|
/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/libmojo/third_party/catapult/devil/devil/utils/ |
D | mock_calls.py | 60 def __exit__(self, exc_type, exc_val, exc_tb): member in TestCase._AssertCalls 62 patch.__exit__(exc_type, exc_val, exc_tb)
|
/external/chromium-trace/catapult/devil/devil/utils/ |
D | mock_calls.py | 60 def __exit__(self, exc_type, exc_val, exc_tb): member in TestCase._AssertCalls 62 patch.__exit__(exc_type, exc_val, exc_tb)
|
/external/autotest/server/cros/network/ |
D | wifi_interface_claim_context.py | 21 def __exit__(self, exception, value, traceback): member in WiFiInterfaceClaimContext
|
/external/python/cpython2/Misc/Vim/ |
D | syntax_test.py | 23 def __exit__(self, *args): member in Bar
|
/external/r8/tools/ |
D | utils.py | 73 def __exit__(self, *_): member in TempDir 85 def __exit__(self, *_): member in ChangedWorkingDirectory
|