From 483ccdf35a11934bd4f764463191093c1a1dd2aa Mon Sep 17 00:00:00 2001 From: Yann Leboulanger <asterix@lagaule.org> Date: Sun, 19 Nov 2006 23:55:06 +0000 Subject: [PATCH] use isinstance instead of type. fixes #2680 --- src/common/xmpp/features_nb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/xmpp/features_nb.py b/src/common/xmpp/features_nb.py index ed195cecae..54ea49196c 100644 --- a/src/common/xmpp/features_nb.py +++ b/src/common/xmpp/features_nb.py @@ -130,7 +130,7 @@ def _ReceivedRegInfo(con, resp, agent): return df=DataForm(typ='form') for i in resp.getQueryPayload(): - if type(i)<>type(iq): + if isinstance(i, Iq): pass elif i.getName()=='instructions': df.addInstructions(i.getData()) -- GitLab