/external/python/cpython2/Tools/pybench/ |
D | With.py | 11 def __enter__(self): member in WithFinally.ContextManager 57 def __enter__(self): member in TryFinally.ContextManager 69 cm.__enter__() 73 cm.__enter__() 77 cm.__enter__() 81 cm.__enter__() 85 cm.__enter__() 89 cm.__enter__() 93 cm.__enter__() 97 cm.__enter__() [all …]
|
/external/python/cpython2/Lib/test/ |
D | test_with.py | 21 def __enter__(self): member in MockContextManager 23 return GeneratorContextManager.__enter__(self) 60 def __enter__(self): member in Nested 67 vars.append(mgr.__enter__()) 97 def __enter__(self): member in MockNested 99 return Nested.__enter__(self) 125 def __enter__(self): member in FailureTestCase.testExitAttributeError.LacksExit 162 def __enter__(self): member in FailureTestCase.testEnterThrows.EnterThrows 177 def __enter__(self): member in FailureTestCase.testExitThrows.ExitThrows 461 def __enter__(self): member in ExceptionalTestCase.testRaisedStopIteration2.cm [all …]
|
/external/python/cpython3/Lib/test/ |
D | test_with.py | 20 def __enter__(self): member in MockContextManager 22 return _GeneratorContextManager.__enter__(self) 59 def __enter__(self): member in Nested 66 vars.append(mgr.__enter__()) 96 def __enter__(self): member in MockNested 98 return Nested.__enter__(self) 133 def __enter__(self): member in FailureTestCase.testExitAttributeError.LacksExit 165 def __enter__(self): member in FailureTestCase.testEnterThrows.EnterThrows 180 def __enter__(self): member in FailureTestCase.testExitThrows.ExitThrows 467 def __enter__(self): member in ExceptionalTestCase.testRaisedStopIteration2.cm [all …]
|
D | test_contextlib.py | 21 self.assertIs(manager.__enter__(), manager) 32 def __enter__(self): member in TestAbstractContextManager.test_structural_subclassing.ManagerFromScratch 46 __enter__ = None variable in TestAbstractContextManager.test_structural_subclassing.NoEnter 93 ctx.__enter__() 105 ctx.__enter__() 386 def __enter__(self): member in mycontext 500 def __enter__(self): member in TestContextDecorator.test_typo_exit.mycontext 515 def __enter__(self): member in TestContextDecorator.test_contextdecorator_as_mixin.somecontext 623 def __enter__(self): member in TestBaseExitStack.test_push.ExitCM 646 def __enter__(self): member in TestBaseExitStack.test_enter_context.TestCM [all …]
|
/external/tensorflow/tensorflow/python/autograph/core/ |
D | function_wrappers.py | 74 def __enter__(self): member in FunctionScope 76 self.autograph_ctx.__enter__() 78 self.name_scope.__enter__() 80 self.autodeps_scope.__enter__()
|
D | ag_ctx.py | 70 def __enter__(self): member in ControlStatusCtx 86 def __enter__(self): member in NullCtx
|
/external/skqp/infra/bots/ |
D | git_utils.py | 22 def __enter__(self): member in GitLocalConfig 59 def __enter__(self): member in GitBranch 131 def __enter__(self): member in NewGitCheckout 136 super(NewGitCheckout, self).__enter__()
|
D | utils.py | 29 def __enter__(self): member in print_timings 45 def __enter__(self): member in tmp_dir 66 def __enter__(self): member in chdir 90 def __enter__(self): member in git_branch
|
/external/python/cpython2/Lib/ |
D | contextlib.py | 15 def __enter__(self): member in GeneratorContextManager 111 enter = mgr.__enter__ 151 def __enter__(self): member in closing
|
/external/skia/infra/bots/ |
D | git_utils.py | 23 def __enter__(self): member in GitLocalConfig 60 def __enter__(self): member in GitBranch 139 def __enter__(self): member in NewGitCheckout 144 super(NewGitCheckout, self).__enter__()
|
D | utils.py | 31 def __enter__(self): member in print_timings 47 def __enter__(self): member in tmp_dir 68 def __enter__(self): member in chdir 92 def __enter__(self): member in git_branch
|
/external/python/cpython3/Lib/ |
D | contextlib.py | 21 def __enter__(self): member in AbstractContextManager 112 def __enter__(self): member in _GeneratorContextManager 300 def __enter__(self): member in closing 315 def __enter__(self): member in _RedirectStream 360 def __enter__(self): member in suppress 429 result = _cm_type.__enter__(cm) 467 def __enter__(self): member in ExitStack 672 def __enter__(self): member in nullcontext
|
/external/chromium-trace/catapult/common/py_utils/py_utils/ |
D | contextlib_ext.py | 12 def __enter__(self): member in _OptionalContextManager 14 return self._manager.__enter__()
|
/external/python/mock/mock/tests/ |
D | testwith.py | 74 mock.__enter__ = Mock() 79 self.assertEqual(m, mock.__enter__.return_value) 80 mock.__enter__.assert_called_with() 90 mock.__enter__.assert_called_with() 165 expected_calls = [call('foo'), call().__enter__(), call().read(), 179 call('foo'), call().__enter__(), call().read(), 181 call('bar'), call().__enter__(), call().read(),
|
/external/python/cpython3/Lib/unittest/test/testmock/ |
D | testwith.py | 69 mock.__enter__ = Mock() 74 self.assertEqual(m, mock.__enter__.return_value) 75 mock.__enter__.assert_called_with() 85 mock.__enter__.assert_called_with() 160 expected_calls = [call('foo'), call().__enter__(), call().read(), 174 call('foo'), call().__enter__(), call().read(), 176 call('bar'), call().__enter__(), call().read(),
|
/external/tensorflow/tensorflow/python/distribute/parallel_device/ |
D | parallel_device.py | 151 def __enter__(self): member in ParallelDevice 159 self._device_scope.__enter__() 164 self._saving_scope.__enter__()
|
/external/skqp/tools/skpbench/ |
D | _hardware_android.py | 20 def __enter__(self): member in HardwareAndroid 21 Hardware.__enter__(self)
|
D | _hardware_pixel.py | 16 def __enter__(self): member in HardwarePixel 17 HardwareAndroid.__enter__(self)
|
D | _hardware_nexus_6p.py | 16 def __enter__(self): member in HardwareNexus6P 17 HardwareAndroid.__enter__(self)
|
D | _hardware_pixel_c.py | 19 def __enter__(self): member in HardwarePixelC 20 HardwareAndroid.__enter__(self)
|
/external/skia/tools/skpbench/ |
D | _hardware_pixel.py | 16 def __enter__(self): member in HardwarePixel 17 HardwareAndroid.__enter__(self)
|
D | _hardware_nexus_6p.py | 16 def __enter__(self): member in HardwareNexus6P 17 HardwareAndroid.__enter__(self)
|
D | _hardware_pixel_c.py | 19 def __enter__(self): member in HardwarePixelC 20 HardwareAndroid.__enter__(self)
|
/external/autotest/client/cros/networking/ |
D | apmanager_xmlrpc_server.py | 32 def __enter__(self): member in ApmanagerXmlRpcDelegate 33 super(ApmanagerXmlRpcDelegate, self).__enter__()
|
/external/tensorflow/tensorflow/python/framework/experimental/ |
D | tape.py | 49 def __enter__(self): member in GradientTape 52 self._ctx_manager.__enter__()
|