[Git][gajim/gajim][master] Add missing get_instance() for Gateway/IQ module

Philipp Hörist gitlab at dev.gajim.org
Thu Jan 3 01:01:37 CET 2019


Philipp Hörist pushed to branch master at gajim / gajim


Commits:
fcb33a10 by Philipp Hörist at 2019-01-03T00:00:31Z
Add missing get_instance() for Gateway/IQ module

- - - - -


2 changed files:

- gajim/common/modules/gateway.py
- gajim/common/modules/iq.py


Changes:

=====================================
gajim/common/modules/gateway.py
=====================================
@@ -93,3 +93,7 @@ class Gateway:
                          prompt=prompt,
                          prompt_jid=prompt_jid,
                          stanza=stanza))
+
+
+def get_instance(*args, **kwargs):
+    return Gateway(*args, **kwargs), 'Gateway'


=====================================
gajim/common/modules/iq.py
=====================================
@@ -85,3 +85,7 @@ class Iq:
         if len(id_) > 3 and id_[2] == '_':
             sid = id_[3:]
         return sid
+
+
+def get_instance(*args, **kwargs):
+    return Iq(*args, **kwargs), 'Iq'



View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/fcb33a10e711d15ccd0c1fd5fc5b3a12f8487f94

-- 
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/fcb33a10e711d15ccd0c1fd5fc5b3a12f8487f94
You're receiving this email because of your account on dev.gajim.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gajim.org/pipermail/commits/attachments/20190103/9b3c3f61/attachment.html>


More information about the Commits mailing list