Skip to content
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

Merged
merged 2 commits into from
Jun 15, 2016
Merged

Refactor Transport out of Client #59

merged 2 commits into from
Jun 15, 2016

Conversation

LeoErcolanelli
Copy link

additionally fix default client timeouts and resources path

"""
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
Copy link

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() 😃

Copy link
Author

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

Copy link

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 ;)

@coveralls
Copy link

coveralls commented Jun 14, 2016

Coverage Status

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
@LeoErcolanelli LeoErcolanelli force-pushed the refactor-async branch 2 times, most recently from 163a033 to 44e097a Compare June 15, 2016 06:28
@coveralls
Copy link

coveralls commented Jun 15, 2016

Coverage Status

Changes Unknown when pulling 44e097a on refactor-async into * on master*.

@LeoErcolanelli LeoErcolanelli merged commit c3b30cc into master Jun 15, 2016
@LeoErcolanelli LeoErcolanelli deleted the refactor-async branch June 15, 2016 06:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants