(self, url, fp, errcode, errmsg, headers, data=None)
Error 302 -- relocated (temporarily).
Error 302 -- relocated (temporarily).
Error 302 -- relocated ( temporarily ) .
def http_error_302(self, url, fp, errcode, errmsg, headers, data=None):
        """Error 302 -- relocated (temporarily)."""
        self.tries += 1
        try:
            if self.maxtries and self.tries >= self.maxtries:
                if hasattr(self, "http_error_500"):
                    meth = self.http_error_500
                else:
                    meth = self.http_error_default
                return meth(url, fp, 500,
                            "Internal Server Error: Redirect Recursion",
                            headers)
            result = self.redirect_internal(url, fp, errcode, errmsg,
                                            headers, data)
            return result
        finally:
            self.tries = 0
def http_error_302 ( self , url , fp , errcode , errmsg , headers , data = None ) : self . tries += 1 try : if self . maxtries and self . tries >= self . maxtries : if hasattr ( self , "http_error_500" ) : meth = self . http_error_500 else : meth = self . http_error_default return meth ( url , fp , 500 , "Internal Server Error: Redirect Recursion" , headers ) result = self . redirect_internal ( url , fp , errcode , errmsg , headers , data ) return result finally : self . tries = 0