remotelogin/devices/managers/decorators.py
def with_connection(f):
    """ decorator that retrieves the conn from the kwargs or
        opens a new instance if no connection was present
    """
    @functools.wraps(f)
    def deco(self, *args, **kwargs):
        with device_connection(self, f, kwargs):
            return f(self, *args, **kwargs)
    return deco
 decorator that retrieves the conn from the kwargs or
        opens a new instance if no connection was present
    
decorator that retrieves the conn from the kwargs or
opens a new instance if no connection was present
decorator that retrieves the conn from the kwargs or opens a new instance if no connection was present
def with_connection(f):
    @functools.wraps(f)
    def deco(self, *args, **kwargs):
        with device_connection(self, f, kwargs):
            return f(self, *args, **kwargs)
    return deco
def with_connection ( f ) : @ functools . wraps ( f ) def deco ( self , * args , ** kwargs ) : with device_connection ( self , f , kwargs ) : return f ( self , * args , ** kwargs ) return deco
decorator that retrieves the conn from the kwargs or
opens a new instance if no connection was present
decorator that retrieves the conn from the kwargs or opens a new instance if no connection was present
""" decorator that retrieves the conn from the kwargs or
        opens a new instance if no connection was present
    """
f