[Python-Dev] httplib is not v6 compatible, is this going to be fixed? (original) (raw)

"Martin v. Löwis" martin at v.loewis.de
Tue Sep 14 23:48:16 CEST 2004


Skip Montanaro wrote:

Phillip> Here's the test case that's missing, then:

Phillip> "[fe80::207:e9ff:fe9b]" Whoops. Fixed.

The code was still incorrect. The square brackets don't belong to the host name - they are part of the URL syntax. Before passing them to the socket module, they need to be stripped off. I have now changed httplib to do that right when parsing host:port.

Regards, Martin



More information about the Python-Dev mailing list