Message279647
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). |
|
Date |
User |
Action |
Args |
2016-10-29 02:48:34 | martin.panter | set | recipients:
+ martin.panter, zach.ware, cfs-pure |
2016-10-29 02:48:34 | martin.panter | set | messageid: <1477709314.93.0.605886485406.issue28539@psf.upfronthosting.co.za> |
2016-10-29 02:48:34 | martin.panter | link | issue28539 messages |
2016-10-29 02:48:34 | martin.panter | create | |
|