Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Making http parameter in discovery.build_from_document optional. #114

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

Merged
merged 1 commit into from
Jul 17, 2015

Conversation

theacodes
Copy link
Contributor

discovery.build()'s http parameter is optional, but if you call build_from_document directly it doesn't handle the case where http is None. Fixed that so now you can call discovery.build_from_document(doc, credentials=credentials).

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jul 16, 2015
@nathanielmanistaatgoogle
Copy link
Contributor

How about test coverage? (This is my standard response to any contribution without test coverage, no matter how small a change.)

discovery.build()'s http parameter is optional, but if you call build_from_document directly it doesn't handle the case where http is None. Fixed that so now you can call ``discovery.build_from_document(doc, credentials=credentials)``.
@theacodes
Copy link
Contributor Author

Tests added for the case where you do provide http and where you don't provide http, covering all branches there.

nathanielmanistaatgoogle added a commit that referenced this pull request Jul 17, 2015
Making http parameter in discovery.build_from_document optional.
@nathanielmanistaatgoogle nathanielmanistaatgoogle merged commit dee9cd5 into googleapis:master Jul 17, 2015
@nathanielmanistaatgoogle
Copy link
Contributor

Thanks for the contribution!

akrherz pushed a commit to akrherz/google-api-python-client that referenced this pull request Apr 1, 2019
This avoids the potential issue of urllib detecting a proxy
and changing the actual request underneath our code. The
basic httplib library does not have any proxy detection, so
this is not even possible there.

Fixes googleapis#114.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants