-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Remove connection from base Client class #2870
Conversation
b5d633c
to
2c42b7c
Compare
self._connection = self._connection_class( | ||
credentials=credentials, http=http) | ||
self._credentials = credentials | ||
self._http = http |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
I would assume you would want @tseaver to take a look too, but this looks pretty straight forward and LGTM. |
@daspecster Yup I'll wait for @tseaver. Thanks |
``http`` object is created that is bound to the | ||
``credentials`` for the current object. | ||
""" | ||
_connection_class = Connection | ||
|
||
def __init__(self, project=None, namespace=None, | ||
credentials=None, http=None): | ||
_ClientProjectMixin.__init__(self, project=project) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
:type http: :class:`~httplib2.Http` | ||
:param http: (Optional) HTTP object to make requests. Can be any object | ||
that defines ``request()`` with the same interface as | ||
:meth:`~httplib2.Http.request`. If not passed, an | ||
``http`` object is created that is bound to the | ||
``credentials`` for the current object. | ||
""" |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Remove connection from base Client class
This is part of #2606. The idea behind this PR: we can drop support for
Connection
classes on a package-by-package basis rather than all at once./cc @tseaver and @mckoss this will have teeny implications on downstream clients