[Python-bugs-list] [ python-Bugs-730963 ] HTTPRedirectHandler variable out of scope

SourceForge.net noreply@sourceforge.net
Thu, 01 May 2003 12:48:33 -0700


Bugs item #730963, was opened at 2003-05-01 15:48
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=730963&group_id=5470

Category: Python Library
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Jim Jewett (jimjjewett)
Assigned to: Nobody/Anonymous (nobody)
Summary: HTTPRedirectHandler variable out of scope

Initial Comment:
Within class HTTPRedirectHandler(BaseHandler), variable 
newurl is local to http_error_302, but is used in 
redirect_request.  Since method redirect_request isn't 
called anywhere else, newurl can just be added to the 
signature.

    def redirect_request(self, req, fp, code, msg, headers, 
newurl):

and 

        new = self.redirect_request(req, fp, code, msg, 
headers, newurl)



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=730963&group_id=5470