From 8079736493e565d0d56e90e93bd34fab15e73560 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Thu, 10 Jan 2013 19:47:57 +0100 Subject: [PATCH] fix traceback --- src/common/contacts.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/contacts.py b/src/common/contacts.py index 113e473ef..639af312d 100644 --- a/src/common/contacts.py +++ b/src/common/contacts.py @@ -490,12 +490,12 @@ class Contacts(): return c def iter_contacts(self): - for jid in self._contacts.keys(): + for jid in list(self._contacts.keys()): for contact in self._contacts[jid][:]: yield contact def get_jid_list(self): - return self._contacts.keys() + return list(self._contacts.keys()) def get_contacts_jid_list(self): return [jid for jid, contact in self._contacts.items() if not