

def _handle_basic_auth_407(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.proxy_auth = auth.HTTPProxyAuth(self.proxy_username, self.proxy_password)
    prep = self.proxy_auth(prep)
    _r = r.connection.send(prep, **self)
    _r.history.append(r)
    _r.request = prep
    return _r

dataset/ETHPy150Open sigmavirus24/requests-toolbelt/requests_toolbelt/auth/guess.py GuessProxyAuth._handle_basic_auth_407/VarMisuse@149/177 `kwargs`->`self`