Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits:
396c27a9 by Philipp Hörist at 2019-01-26T22:54:57Z
Fix BOSH disconnect
- - - - -
1 changed file:
- nbxmpp/dispatcher_nb.py
Changes:
=====================================
nbxmpp/dispatcher_nb.py
=====================================
@@ -623,7 +623,10 @@ class XMPPDispatcher(PlugIn):
continue
if _id in self.on_responses:
if len(self._expected) == 1:
- self._owner.onreceive(None)
+ if hasattr(self._owner, 'onreceive'):
+ # With BOSH we get a terminating body with multiple stanzas
+ # in it, we unplug BOSH before we parse the stanzas
+ self._owner.onreceive(None)
resp, args = self.on_responses[_id]
del self.on_responses[_id]
if args is None:
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/commit/396c27a9462edc4fd4288b1ed7…
--
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/commit/396c27a9462edc4fd4288b1ed7…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
8e336311 by Philipp Hörist at 2019-01-26T20:57:22Z
Add annotations
- - - - -
1 changed file:
- gajim/common/modules/base.py
Changes:
=====================================
gajim/common/modules/base.py
=====================================
@@ -12,6 +12,10 @@
# You should have received a copy of the GNU General Public License
# along with Gajim. If not, see <http://www.gnu.org/licenses/>.
+from typing import Any # pylint: disable=unused-import
+from typing import Dict # pylint: disable=unused-import
+from typing import List # pylint: disable=unused-import
+
import logging
from functools import partial
from unittest.mock import Mock
@@ -24,13 +28,13 @@ log = logging.getLogger('gajim.c.m.base')
class BaseModule:
_nbxmpp_extends = ''
- _nbxmpp_methods = []
+ _nbxmpp_methods = [] # type: List[str]
def __init__(self, con):
self._con = con
self._account = con.name
- self._nbxmpp_callbacks = {}
- self.handlers = []
+ self._nbxmpp_callbacks = {} # type: Dict[str, Any]
+ self.handlers = [] # type: List[str]
def __getattr__(self, key):
if key not in self._nbxmpp_methods:
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/8e336311cc259c738e49919cd517f29aee…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/8e336311cc259c738e49919cd517f29aee…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits:
4dd65f01 by André Apitzsch at 2019-01-24T21:12:40Z
Remove Python 2 compatibility code
- - - - -
1609d94a by Philipp Hörist at 2019-01-24T21:19:03Z
Merge branch 'urllib' into 'master'
Remove Python 2 compatibility code
See merge request gajim/python-nbxmpp!28
- - - - -
1 changed file:
- nbxmpp/transports_nb.py
Changes:
=====================================
nbxmpp/transports_nb.py
=====================================
@@ -32,11 +32,7 @@ import base64
import sys
import locale
import logging
-
-try:
- from urllib.parse import urlparse
-except ImportError:
- from urlparse import urlparse
+from urllib.parse import urlparse
from .plugin import PlugIn
from .idlequeue import IdleObject
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/compare/16cb9d5fde313c1285655c650…
--
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/compare/16cb9d5fde313c1285655c650…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits:
9d999c3f by André Apitzsch at 2019-01-24T21:01:32Z
Remove outdated documentation
Documentation can be regenerated using 'epydoc --config doc/epydoc.conf'
- - - - -
16cb9d5f by Philipp Hörist at 2019-01-24T21:18:33Z
Merge branch 'removeDoc' into 'master'
Remove outdated documentation
See merge request gajim/python-nbxmpp!27
- - - - -
14 changed files:
- − doc/apidocs/api-objects.txt
- − doc/apidocs/class-tree.html
- − doc/apidocs/crarr.png
- − doc/apidocs/epydoc.css
- − doc/apidocs/epydoc.js
- − doc/apidocs/frames.html
- − doc/apidocs/help.html
- − doc/apidocs/identifier-index.html
- − doc/apidocs/index.html
- − doc/apidocs/module-tree.html
- − doc/apidocs/nbxmpp-module.html
- − doc/apidocs/nbxmpp-pysrc.html
- − doc/apidocs/nbxmpp.auth_nb-module.html
- − doc/apidocs/nbxmpp.auth_nb-pysrc.html
The diff was not included because it is too large.
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/compare/f90126ecf2f9ddee0c6426aa0…
--
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/compare/f90126ecf2f9ddee0c6426aa0…
You're receiving this email because of your account on dev.gajim.org.