authomatic/providers/__init__.py
def _http_status_in_category(status, category):
        """
        Checks whether a HTTP status code is in the category denoted by the
        hundreds digit.
        """

        assert category < 10, 'HTTP status category must be a one-digit int!'
        cat = category * 100
        return status >= cat and status < cat + 100
def _http_status_in_category(status, category):
        assert category < 10, 'HTTP status category must be a one-digit int!'
        cat = category * 100
        return status >= cat and status < cat + 100
def _http_status_in_category ( status , category ) : assert category < 10 , 'HTTP status category must be a one-digit int!' cat = category * 100 return status >= cat and status < cat + 100
Checks whether a HTTP status code is in the category denoted by the
        hundreds digit.
Checks whether a HTTP status code is in the category denoted by the hundreds digit .