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.

Author martin.panter
Recipients cfs-pure, martin.panter, zach.ware
Date 2016-10-29.02:48:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1477709314.93.0.605886485406.issue28539@psf.upfronthosting.co.za>
In-reply-to
Content
In general, I would be against stripping square brackets if the host and port have already been separated, e.g. in the address tuple used with socket.create_connection() etc. It feels like unnecessary double processing, which should already have been done at a higher level.

But I guess you could make the argument that adding this feature in HTTPConnection simplifies the API by improving consistency with the case where the port is not specified separately. But I would still say it is not a bug fix nor regression, and should be documented as being added in the next Python version (3.7 atm).
History
Date User Action Args
2016-10-29 02:48:34martin.pantersetrecipients: + martin.panter, zach.ware, cfs-pure
2016-10-29 02:48:34martin.pantersetmessageid: <1477709314.93.0.605886485406.issue28539@psf.upfronthosting.co.za>
2016-10-29 02:48:34martin.panterlinkissue28539 messages
2016-10-29 02:48:34martin.pantercreate