Commit c5d36cd0 authored by Philipp Hörist's avatar Philipp Hörist

JID: Use isinstance for type check

parent de0a912a
......@@ -816,7 +816,8 @@ class JID:
"""
if not jid and not domain:
raise ValueError('JID must contain at least domain name')
elif type(jid) == type(self):
if isinstance(jid, JID):
self.node, self.domain = jid.node, jid.domain
self.resource = jid.resource
elif domain:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment