httplib2 icon indicating copy to clipboard operation
httplib2 copied to clipboard

Fix IndexError on Jython (#250)

Open AusIV opened this issue 11 years ago • 0 comments

Jython has an unfortunate issue where the socketaddr object isn't really a tuple, but is instead an item that acts like a tuple under some circumstances. This commit makes httplib2 convert it to an actual tuple, so that it will work as expected.

This solution isn't very nice, but without upstream fixes to Jython, this is the only obvious solution. No hard feelings if you don't want to pull this one, but it would save me some headache in our Jython environments.

AusIV avatar Jun 30 '14 20:06 AusIV