Skip to content
This repository was archived by the owner on Jan 13, 2021. It is now read-only.

For python2.7 compatibility #201

Merged
merged 1 commit into from
Feb 20, 2016
Merged

Conversation

irachex
Copy link
Contributor

@irachex irachex commented Feb 18, 2016

we can't use body.encode('utf-8') if body is a str instance in python2.7

@Lukasa
Copy link
Member

Lukasa commented Feb 18, 2016

Thanks for this @irachex! Can you please add a test that validates the problem and proves that it's fixed?

@irachex
Copy link
Contributor Author

irachex commented Feb 18, 2016

@Lukasa 2 testcase added and passed.
Not sure whether failed travis-ci is related with this PR. I'll check later.

@Lukasa
Copy link
Member

Lukasa commented Feb 18, 2016

I agree, I think the Travis failures are a timing issue related to our attempts to disable SSL cert verification in the tests. That's...pretty annoying.

@Lukasa
Copy link
Member

Lukasa commented Feb 19, 2016

Want to try rebasing onto the new development branch? I've merged what I hope will be a fix to the Travis tests.

@irachex
Copy link
Contributor Author

irachex commented Feb 20, 2016

@Lukasa Cool! Rebased.

@Lukasa
Copy link
Member

Lukasa commented Feb 20, 2016

@irachex Thanks so much, this looks perfect!

Lukasa added a commit that referenced this pull request Feb 20, 2016
For python2.7 compatibility
@Lukasa Lukasa merged commit 6be7831 into python-hyper:development Feb 20, 2016
@irachex irachex deleted the py27-compat branch February 20, 2016 13:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants