def patched(f):
 def wrapped(*args, **kwargs):
  kwargs['return_response'] = False
  kwargs['prefetch'] = True
  config = kwargs.get('config', {})
  config.update(safe_mode=True)
  kwargs['config'] = config
  return f(*args, **kwargs)
 return wrapped

def patched ( f ) : def wrapped ( * args , ** kwargs ) : kwargs [ 'return_response' ] = False kwargs [ 'prefetch' ] = True config = kwargs . get ( 'config' , { } ) config . update ( safe_mode = True ) kwargs [ 'config' ] = config return f ( * args , ** kwargs ) return wrapped
patches calls to run_on_app_servers on instance methods .