

def _handle_basic_auth_401(self, r, kwargs):
    if (self.pos is not None):
        r.request.body.seek(self.pos)
    r.content
    r.raw.release_conn()
    prep = r.request.copy()
    if (not hasattr(prep, '_cookies')):
        prep._cookies = cookies.RequestsCookieJar()
    cookies.extract_cookies_to_jar(prep._cookies, r.request, r.raw)
    prep.prepare_cookies(prep._cookies)
    self.auth = auth.HTTPBasicAuth(self.username, self.password)
    prep = self.auth(kwargs)
    _r = r.connection.send(prep, **kwargs)
    _r.history.append(r)
    _r.request = prep
    return _r

dataset/ETHPy150Open sigmavirus24/requests-toolbelt/requests_toolbelt/auth/guess.py GuessAuth._handle_basic_auth_401/VarMisuse@135/158 `prep`->`kwargs`