-
Notifications
You must be signed in to change notification settings - Fork 65
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
Refactor Transport out of Client #59
Conversation
""" | ||
Algolia Search Client initialization | ||
|
||
@param app_id the application ID you have in your admin interface | ||
@param api_key a valid API key for the service | ||
@param hosts_array the list of hosts that you have received for the service | ||
""" | ||
if not hosts_array: | ||
self._transport = Transport() if _transport is None else _transport |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
self._transport = _transport or Transport()
😃
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess it's a matter of taste but as I really want it to be None
and not False
, []
or whatever I prefer to check for None directly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
self._transport = _transport or Transport() 😃
Ruby style ;)
Changes Unknown when pulling e15e3de on refactor-async into * on master*. |
additionally fix default client timeouts and resources path Fix default client timeout setup.py: fix resources path Refactor transport layer out of Client
163a033
to
44e097a
Compare
Changes Unknown when pulling 44e097a on refactor-async into * on master*. |
additionally fix default client timeouts and resources path