-
Notifications
You must be signed in to change notification settings - Fork 4
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
Fix session close handling in command-line client #9
base: master
Are you sure you want to change the base?
Conversation
import asyncio | ||
import json |
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.
opportunistic removal of unused packages
def __init__(self, username, password, timeout=REQUESTS_TIMEOUT, | ||
session=None): |
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.
opportunistic PEP-8 line-wrap
|
||
def get_data(self): | ||
"""Return collected data""" | ||
return self._data | ||
|
||
def close_session(self): | ||
async def close_session(self): |
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.
Breaking change
While the master branch module is working well, using the command-line client still issues the warning:
This PR aims to fix this by removing session-closing duties from the client and handing them over to the EboxClient class.
BREAKING CHANGE: method
close_session()
must now be awaited.