(response)
this mimics the behavior of requests.response.raise_for_status so we can
    treat kissmetrics requests and hubspot requests interchangeably in our retry code
this mimics the behavior of requests.response.raise_for_status so we can
    treat kissmetrics requests and hubspot requests interchangeably in our retry code
this mimics the behavior of requests . response . raise_for_status so we can treat kissmetrics requests and hubspot requests interchangeably in our retry code
def _raise_for_urllib3_response(response):
    '''
    this mimics the behavior of requests.response.raise_for_status so we can
    treat kissmetrics requests and hubspot requests interchangeably in our retry code
    '''
    if 400 <= response.status < 600:
        raise requests.exceptions.HTTPError(response=response)
def _raise_for_urllib3_response ( response ) : if 400 <= response . status < 600 : raise requests . exceptions . HTTPError ( response = response )