def __call__(self, func):
 return FunctionMaker.create(func, 'with _self_: return _func_(%(shortsignature)s)', dict(_self_=self, _func_=func), __wrapped__=func)

def __call__ ( self , func ) : return FunctionMaker . create ( func , 'with _self_: return _func_(%(shortsignature)s)' , dict ( _self_ = self , _func_ = func ) , __wrapped__ = func )
context manager decorator .