perceval/client.py
def update_rate_limit(self, response):
        """Update the rate limit and the time to reset
        from the response headers.

        :param: response: the response object
        """
        if self.rate_limit_header in response.headers:
            self.rate_limit = int(response.headers[self.rate_limit_header])
            logger.debug("Rate limit: %s", self.rate_limit)
        else:
            self.rate_limit = None

        if self.rate_limit_reset_header in response.headers:
            self.rate_limit_reset_ts = int(response.headers[self.rate_limit_reset_header])
            logger.debug("Rate limit reset: %s", self.calculate_time_to_reset())
        else:
            self.rate_limit_reset_ts = None
def update_rate_limit(self, response):
        if self.rate_limit_header in response.headers:
            self.rate_limit = int(response.headers[self.rate_limit_header])
            logger.debug("Rate limit: %s", self.rate_limit)
        else:
            self.rate_limit = None

        if self.rate_limit_reset_header in response.headers:
            self.rate_limit_reset_ts = int(response.headers[self.rate_limit_reset_header])
            logger.debug("Rate limit reset: %s", self.calculate_time_to_reset())
        else:
            self.rate_limit_reset_ts = None
def update_rate_limit ( self , response ) : if self . rate_limit_header in response . headers : self . rate_limit = int ( response . headers [ self . rate_limit_header ] ) logger . debug ( "Rate limit: %s" , self . rate_limit ) else : self . rate_limit = None if self . rate_limit_reset_header in response . headers : self . rate_limit_reset_ts = int ( response . headers [ self . rate_limit_reset_header ] ) logger . debug ( "Rate limit reset: %s" , self . calculate_time_to_reset ( ) ) else : self . rate_limit_reset_ts = None
Update the rate limit and the time to reset
        from the response headers.

        :param: response: the response object
Update the rate limit and the time to reset from the response headers .