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.py')
-rw-r--r--src/common/xmpp/dispatcher.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/xmpp/dispatcher.py b/src/common/xmpp/dispatcher.py
index 31933ace2..842a1e052 100644
--- a/src/common/xmpp/dispatcher.py
+++ b/src/common/xmpp/dispatcher.py
@@ -295,7 +295,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: cb(session,stanza,**args)
@@ -382,4 +382,4 @@ class Dispatcher(PlugIn):
self._owner_send('</stream:stream>')
while self.Process(1): pass
-# vim: se ts=3: \ No newline at end of file
+# vim: se ts=3: