def http_error_302(self, req, fp, code, msg, headers):
    infourl = urllib.addinfourl(fp, headers, req.get_full_url())
    infourl.status = code
    infourl.code = code
    return infourl
def http_error_302(self, req, fp, code, msg, headers):
    infourl = urllib.addinfourl(fp, headers, req.get_full_url())
    infourl.status = code
    infourl.code = code
    return infourl