Fix JID cache (wrong in-progress version comitted earlier)

This commit is contained in:
Lance Stout 2012-10-22 20:09:35 -07:00
parent 4598031dd2
commit c5046b9c91

View File

@ -421,11 +421,10 @@ class JID(object):
if jid is None or jid == '':
jid = ''
if jid in JID_CACHE:
self._jid = JID_CACHE[jid]
else:
if not jid:
jid = (None, None, None)
elif jid in JID_CACHE:
jid = JID_CACHE[jid]
elif not isinstance(jid, JID):
jid = _parse_jid(jid)
else: