def __init__(self, gen):
     GeneratorContextManager.__init__(self, gen)
     self.enter_called = False
     self.exit_called = False
     self.exit_args = None
Example #2
0
 def __init__(self, f, *a, **k):
     return GeneratorContextManager.__init__(self, f(*a, **k))
 def __init__(self, gen):
     GeneratorContextManager.__init__(self, gen)
     self.enter_called = False
     self.exit_called = False
     self.exit_args = None
Example #4
0
 def __init__(self, f, *a, **k):
     return GeneratorContextManager.__init__(self, f(*a, **k))