Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits: e1890a26 by lovetox at 2020-03-20T16:18:18+01:00 Fix pylint errors
- - - - - 636ba000 by lovetox at 2020-03-20T16:19:30+01:00 Update .pylintrc
- - - - -
2 changed files:
- .pylintrc - nbxmpp/websocket.py
Changes:
===================================== .pylintrc ===================================== @@ -377,7 +377,7 @@ max-locals=50 max-parents=7
# Maximum number of public methods for a class (see R0904). -max-public-methods=50 +max-public-methods=100
# Maximum number of return / yield for function / method body max-returns=100
===================================== nbxmpp/websocket.py ===================================== @@ -116,16 +116,14 @@ class WebsocketConnection(Connection):
self.notify('data-received', data)
- @staticmethod - def _on_websocket_pong(_websocket, _message): + def _on_websocket_pong(self, _websocket, _message): self._log.info('Pong received')
def _on_websocket_closed(self, websocket): self._log.info('Closed %s', get_websocket_close_string(websocket)) self._finalize('disconnected')
- @staticmethod - def _on_websocket_closing(_websocket): + def _on_websocket_closing(self, _websocket): self._log.info('Closing')
def _on_websocket_error(self, _websocket, error):
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/compare/ceb541462ed855c6a389a96d...