- Notifications
You must be signed in to change notification settings - Fork 2.5k
Fix file stream recognition for Python 3 #141
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
Conversation
We dropped support for Python 2.5 and earlier a long time ago, and even Python 2.6 is ancient history these days (http://www.curiousefficiency.org/posts/2015/04/stop-supporting-python26.html). Why not just drop the version check entirely? |
Complementary bug: #142 I dont know which versions you want to offically support but I do think it is reasonable to drop support for python < 2.6. |
Yeah. Let's just drop the version check entirely. |
Hm it says Travis build failed, but the link only shows |
When I look at https://travis-ci.org/google/google-api-python-client/jobs/84685349 I see
. Could that be a consequence of this change? |
Yes it was my fault. I should have just deleted the python version checks and kept everything else intact but I thought the whole if-else block was obsolete. |
Unless there is a test running on python < 2.6 im not sure why it would fail. The diff to master is now very simple again, but we cant go through the "you tell me the error message and I fix it" cycle every time as the Travis links are still broken for me. |
OH this is related to my browser somehow. I just tried a different one and the page works. |
This is an error in the test with the new philosophy of not supporting python < 2.6 . The test explicitly tests python 2.5.5. I think the test should be removed. |
Change content now looks great. Please squash commits (so that this pull request just has one commit) and adhere to http://chris.beams.io/posts/git-commit/#seven-rules with your commit message. Thanks for this improvement! |
Removed support for Python versions < 2.6 and fixed http.next_chunk not using streams in Python 3. Addtionally a now unneeded test was removed. Support for these old Python versions was determined unnecessary.
Thank you too for reviewing |
Passes my review. @tmatsuo do you want to be a second pair of eyes on this? |
LGTM |
Fix file stream recognition for Python 3.
No description provided.