Fix some Python3 compatibility issues.

This commit is contained in:
Lance Stout
2012-12-14 09:37:29 -08:00
parent def34f0e42
commit 8b29900be4
2 changed files with 3 additions and 3 deletions

View File

@@ -75,7 +75,7 @@ def _cache(key, parts, locked):
with JID_CACHE_LOCK:
while len(JID_CACHE) > JID_CACHE_MAX_SIZE:
found = None
for key, item in JID_CACHE.iteritems():
for key, item in JID_CACHE.items():
if not item[1]: # if not locked
found = key
break