Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits:
d8e4ed3e by Philipp Hörist at 2017-07-28T11:17:14+02:00
Fix new getTag method working with Python 2
- - - - -
1 changed file:
- nbxmpp/protocol.py
Changes:
=====================================
nbxmpp/protocol.py
=====================================
--- a/nbxmpp/protocol.py
+++ b/nbxmpp/protocol.py
@@ -961,7 +961,7 @@ class Protocol(Node):
"""
Return at least a Protocol instance, so we dont fall back to simplexml
level
"""
- tag = super().getTag(name, attrs, namespace)
+ tag = super(Protocol, self).getTag(name, attrs, namespace)
if not tag:
return None
@@ -1098,7 +1098,7 @@ class Message(Protocol):
"""
Return Message instance, fallback to Protocol
"""
- tag = super().getTag(name, attrs, namespace)
+ tag = super(Message, self).getTag(name, attrs, namespace)
if not tag:
return tag
View it on GitLab:
https://dev.gajim.org/gajim/python-nbxmpp/commit/d8e4ed3e7f198a03279f47aa0b0ed19d6999d43e
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits