Home
last modified time | relevance | path

Searched refs:_GeneratorContextManager (Results 1 - 2 of 2) sorted by relevance

/third_party/python/Lib/test/
H A Dtest_with.py10 from contextlib import _GeneratorContextManager, contextmanager, nullcontext namespace
13 class MockContextManager(_GeneratorContextManager):
22 return _GeneratorContextManager.__enter__(self)
27 return _GeneratorContextManager.__exit__(self, type,
/third_party/python/Lib/
H A Dcontextlib.py69 _GeneratorContextManager to support use as
72 This is a private interface just for _GeneratorContextManager.
125 class _GeneratorContextManager(
289 return _GeneratorContextManager(func, args, kwds)
129 ): global() class

Completed in 3 milliseconds