def __exit__(self, type, value, traceback): self.exit_called = True self.exit_args = (type, value, traceback) return _GeneratorContextManager.__exit__(self, type, value, traceback)
def __exit__(self, *exc_info): if not exc_info: exc_info = (None, None, None) return _GeneratorContextManager.__exit__(self, *exc_info)