Philipp Hörist pushed to branch master at gajim / python-nbxmpp

Commits:

2 changed files:

Changes:

  • .pylintrc
    ... ... @@ -377,7 +377,7 @@ max-locals=50
    377 377
     max-parents=7
    
    378 378
     
    
    379 379
     # Maximum number of public methods for a class (see R0904).
    
    380
    -max-public-methods=50
    
    380
    +max-public-methods=100
    
    381 381
     
    
    382 382
     # Maximum number of return / yield for function / method body
    
    383 383
     max-returns=100
    

  • nbxmpp/websocket.py
    ... ... @@ -116,16 +116,14 @@ class WebsocketConnection(Connection):
    116 116
     
    
    117 117
             self.notify('data-received', data)
    
    118 118
     
    
    119
    -    @staticmethod
    
    120
    -    def _on_websocket_pong(_websocket, _message):
    
    119
    +    def _on_websocket_pong(self, _websocket, _message):
    
    121 120
             self._log.info('Pong received')
    
    122 121
     
    
    123 122
         def _on_websocket_closed(self, websocket):
    
    124 123
             self._log.info('Closed %s', get_websocket_close_string(websocket))
    
    125 124
             self._finalize('disconnected')
    
    126 125
     
    
    127
    -    @staticmethod
    
    128
    -    def _on_websocket_closing(_websocket):
    
    126
    +    def _on_websocket_closing(self, _websocket):
    
    129 127
             self._log.info('Closing')
    
    130 128
     
    
    131 129
         def _on_websocket_error(self, _websocket, error):