Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix IndexError on Jython (#250) #274

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

AusIV
Copy link

@AusIV AusIV commented Jun 30, 2014

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.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant