Lines Matching refs:__exit__
27 def __exit__(self, type, value, traceback):
30 return GeneratorContextManager.__exit__(self, type,
72 if not self.__exit__(*sys.exc_info()):
76 def __exit__(self, *exc_info):
83 if mgr.__exit__(*ex):
103 def __exit__(self, *exc_info):
106 return Nested.__exit__(self, *exc_info)
117 def __exit__(self, type, value, traceback):
166 def __exit__(self, *args):
181 def __exit__(self, *args):
224 # Test the __exit__ arguments. Issue #7853
465 def __exit__(self, type, value, traceback):
504 def __exit__(self, type, value, traceback):
514 # issue4589: __exit__ return code may raise an exception
525 def __exit__(self, a, b, c):
623 def __exit__(self, t, v, tb): pass
644 def __exit__(self, t, v, tb): return True
654 def __exit__(self, t, v, tb): return False
679 def __exit__(self, *exc_info):
690 def __exit__(self, *exc_info): pass
694 def __exit__(self, *exc_info): raise RuntimeError()