def _check_throttles_decorator(func):
 @wraps(func)
 def _decorated(*args, **kwargs):
  if RateLimitConfiguration.current().enabled:
   return func(*args, **kwargs)
  else:
   msg = 'Rate limiting is disabled because `RateLimitConfiguration` is not enabled.'
   LOGGER.info(msg)
   return
 return _decorated

def _check_throttles_decorator ( func ) : @ wraps ( func ) def _decorated ( * args , ** kwargs ) : if RateLimitConfiguration . current ( ) . enabled : return func ( * args , ** kwargs ) else : msg = 'Rate limiting is disabled because `RateLimitConfiguration` is not enabled.' LOGGER . info ( msg ) return return _decorated
decorator for apiview .