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