Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/xmpp/dispatcher_nb.py')
-rw-r--r--src/common/xmpp/dispatcher_nb.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/xmpp/dispatcher_nb.py b/src/common/xmpp/dispatcher_nb.py
index 16838560f..c89c35a33 100644
--- a/src/common/xmpp/dispatcher_nb.py
+++ b/src/common/xmpp/dispatcher_nb.py
@@ -337,7 +337,7 @@ class Dispatcher(PlugIn):
output=''
if ID in session._expected:
user=0
- if type(session._expected[ID]) == type(()):
+ if isinstance(session._expected[ID], tuple):
cb,args = session._expected[ID]
session.DEBUG("Expected stanza arrived. Callback %s(%s) found!" % (cb, args), 'ok')
try:
@@ -438,4 +438,4 @@ class Dispatcher(PlugIn):
''' Send a stream terminator. '''
self._owner.Connection.send('</stream:stream>')
-# vim: se ts=3: \ No newline at end of file
+# vim: se ts=3: