Home
last modified time | relevance | path

Searched refs:enter_result (Results 1 – 4 of 4) sorted by relevance

/external/python/cpython3/Lib/
Dcontextlib.py669 def __init__(self, enter_result=None): argument
670 self.enter_result = enter_result
673 return self.enter_result
/external/python/cpython3/Lib/test/
Dtest_contextlib.py962 with self.redirect_stream(f) as enter_result:
963 self.assertIs(enter_result, f)
1012 with suppress(ValueError) as enter_result:
1013 self.assertIsNone(enter_result)
/external/fonttools/Tests/misc/
Dpy23_test.py415 with self.redirect_stream(f) as enter_result:
416 self.assertIs(enter_result, f)
/external/python/cpython3/Doc/library/
Dcontextlib.rst159 .. function:: nullcontext(enter_result=None)
161 Return a context manager that returns *enter_result* from ``__enter__``, but
175 An example using *enter_result*::