

def finalize(self, c):
    'finalize a Curl object and extract information from it.'
    self._url = c.getinfo(pycurl.EFFECTIVE_URL)
    nt = c.getinfo(pycurl.NAMELOOKUP_TIME)
    ct = c.getinfo(pycurl.CONNECT_TIME)
    pt = c.getinfo(pycurl.PRETRANSFER_TIME)
    st = c.getinfo(pycurl.STARTTRANSFER_TIME)
    tt = c.getinfo(pycurl.TOTAL_TIME)
    rt = c.getinfo(pycurl.REDIRECT_TIME)
    self._timing = TimingInfo(nt, ct, pt, st, tt, rt)
    self._redirectcount = c.getinfo(pycurl.REDIRECT_COUNT)
    self._cookielist = c.getinfo(pycurl.INFO_COOKIELIST)
    c.close()
    self._downloadfile = None

dataset/ETHPy150Open kdart/pycopia/WWW/pycopia/WWW/client.py HTTPResponse.finalize/original