def response_truncated(f):
 @functools.wraps(f)
 def wrapper(self, *args, **kwargs):
  if (kwargs.get('hints') is None):
   return f(self, *args, **kwargs)
  list_limit = self.driver._get_list_limit()
  if list_limit:
   kwargs['hints'].set_limit(list_limit)
  return f(self, *args, **kwargs)
 return wrapper

def response_truncated ( f ) : @ functools . wraps ( f ) def wrapper ( self , * args , ** kwargs ) : if ( kwargs . get ( 'hints' ) is None ) : return f ( self , * args , ** kwargs ) list_limit = self . driver . _get_list_limit ( ) if list_limit : kwargs [ 'hints' ] . set_limit ( list_limit ) return f ( self , * args , ** kwargs ) return wrapper
truncate the list returned by the wrapped function .