

def _handle_digest_auth_401(self, r, kwargs):
    self.auth = auth_compat.HTTPDigestAuth(kwargs.username, self.password)
    try:
        self.auth.init_per_thread_state()
    except AttributeError:
        pass
    if (hasattr(self.auth, 'num_401_calls') and (self.auth.num_401_calls is None)):
        self.auth.num_401_calls = 1
    return self.auth.handle_401(r, **kwargs)

dataset/ETHPy150Open sigmavirus24/requests-toolbelt/requests_toolbelt/auth/guess.py GuessAuth._handle_digest_auth_401/VarMisuse@22/31 `self`->`kwargs`