Author martin.panter
Recipients cfs-pure, martin.panter
Date 2016-10-26.23:17:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1477523855.77.0.599724925432.issue28539@psf.upfronthosting.co.za>
In-reply-to
Content
I tried the original revision 433606e9546c code in Python 2.7 (which still allows mixed tabs and spaces), and it behaves the same as the current version. Thus I suspect revision 9e2b94a3b5dc did not change any behaviour.

What is your use case? Why can’t you just pass the address without square brackets:

>>> con = HTTPConnection("fe80::26a9:37ff:fe00:f764", 15482)
>>> (con.host, con.port)
('fe80::26a9:37ff:fe00:f764', 15482)

How do you come by an IPv6 address in square brackets, but with the port number separate? You can use urlsplit() to extract the “hostname” and “port” attributes from a URL, but in that case “hostname” does not include the square brackets:

>>> urlsplit("//[fe80::26a9:37ff:fe00:f764]:15482").hostname
'fe80::26a9:37ff:fe00:f764'
History
Date User Action Args
2016-10-26 23:17:35martin.pantersetrecipients: + martin.panter, cfs-pure
2016-10-26 23:17:35martin.pantersetmessageid: <1477523855.77.0.599724925432.issue28539@psf.upfronthosting.co.za>
2016-10-26 23:17:35martin.panterlinkissue28539 messages
2016-10-26 23:17:35martin.pantercreate