(self, r, **kwargs)
Reset num_401_calls counter on redirects.
Reset num_401_calls counter on redirects.
Reset num_401_calls counter on redirects .
def handle_redirect(self, r, **kwargs):
        """Reset num_401_calls counter on redirects."""
        if r.is_redirect:
            self._thread_local.num_401_calls = 1
def handle_redirect ( self , r , * * kwargs ) : if r . is_redirect : self . _thread_local . num_401_calls = 1