Open GoogleCodeExporter opened 9 years ago
This seems to be an issue where the socketaddr item returned by Jython's
getaddrinfo is not a tuple, but an item that has limited similarities to a
tuple. It does not support slicing, so running sa[2:] returns an IndexError
instead of an empty tuple.
It's not obvious to me why httplib2 is doing
(self.host, self.port) + sa[2:]
Which I believe should just be the same as
sa
This worked in Httpli2 0.7.2 before it split out using self.host and self.port
from using the full sa tuple, but the heart of the problem is really Jython's
implementation of the socketaddr item.
Jython has recently accepted a patch related to this issue, but I have no idea
when there will be a final release of Jython that incorporates it.
Original comment by austin.r...@propylon.com
on 30 Jun 2014 at 7:56
Original issue reported on code.google.com by
manfr...@gmail.com
on 10 Jul 2013 at 7:05