This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: HTTPRedirectHandler variable out of scope
Type: Stage:
Components: Library (Lib) Versions: Python 2.3
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: jhylton Nosy List: jhylton, jimjjewett
Priority: normal Keywords:

Created on 2003-05-01 19:48 by jimjjewett, last changed 2022-04-10 16:08 by admin. This issue is now closed.

Messages (2)
msg15809 - (view) Author: Jim Jewett (jimjjewett) Date: 2003-05-01 19:48
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)

msg15810 - (view) Author: Jeremy Hylton (jhylton) (Python triager) Date: 2003-05-05 04:09
Logged In: YES 
user_id=31392

Fixed in rev. 1.42
History
Date User Action Args
2022-04-10 16:08:30adminsetgithub: 38418
2003-05-01 19:48:33jimjjewettcreate