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: Docs for urllib.request.HTTPRedirectHandler.redirect_request missing "hdrs" paramether
Type: enhancement Stage: patch review
Components: Documentation Versions: Python 3.0, Python 3.1, Python 2.7, Python 2.6
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: georg.brandl Nosy List: ajaksu2, georg.brandl, mroman, orsenthil, quiver
Priority: normal Keywords: easy, patch

Created on 2009-01-09 13:58 by mroman, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
redirect_request_rst.diff ajaksu2, 2009-02-08 20:22 Adds "newurl" to docs, mention URI header in http_error_301
Messages (3)
msg79468 - (view) Author: (mroman) Date: 2009-01-09 13:58
documentaion doesn't include parameter in 
urllib.request.HTTPRedirectHandler.redirect_request

http://docs.python.org/3.0/library/urllib.request.html#urllib.request.HT
TPRedirectHandler.redirect_request

says:
HTTPRedirectHandler.redirect_request(req, fp, code, msg, hdrs)

while code says:
    def redirect_request(self, req, fp, code, msg, headers, newurl):
msg81417 - (view) Author: Daniel Diniz (ajaksu2) * (Python triager) Date: 2009-02-08 20:22
This patch adds the "newurl" parameter to signature of redirect_request
(important, IMHO) and mentions it in the doc (less important). It also
describes the behavior of http_error_30* in more detail, perhaps too much?
msg81901 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2009-02-13 10:43
Applied in r69570, r69571.
History
Date User Action Args
2022-04-11 14:56:43adminsetgithub: 49144
2009-02-13 10:43:37georg.brandlsetstatus: open -> closed
resolution: fixed
messages: + msg81901
2009-02-12 17:46:10ajaksu2setkeywords: + easy
nosy: + orsenthil
title: documentaion doesn't include parameter in urllib.request.HTTPRedirectHandler.redirect_request -> Docs for urllib.request.HTTPRedirectHandler.redirect_request missing "hdrs" paramether
type: enhancement
stage: patch review
2009-02-08 20:22:24ajaksu2setfiles: + redirect_request_rst.diff
nosy: + ajaksu2
messages: + msg81417
keywords: + patch
2009-01-09 13:58:35mromancreate