Fix JID cache (wrong in-progress version comitted earlier)
This commit is contained in:
@@ -421,11 +421,10 @@ class JID(object):
|
|||||||
if jid is None or jid == '':
|
if jid is None or jid == '':
|
||||||
jid = ''
|
jid = ''
|
||||||
|
|
||||||
if jid in JID_CACHE:
|
|
||||||
self._jid = JID_CACHE[jid]
|
|
||||||
else:
|
|
||||||
if not jid:
|
if not jid:
|
||||||
jid = (None, None, None)
|
jid = (None, None, None)
|
||||||
|
elif jid in JID_CACHE:
|
||||||
|
jid = JID_CACHE[jid]
|
||||||
elif not isinstance(jid, JID):
|
elif not isinstance(jid, JID):
|
||||||
jid = _parse_jid(jid)
|
jid = _parse_jid(jid)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user