changeset 90c5ed47435f in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=90c5ed47435f description: fix traceback
diffstat:
src/common/contacts.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r e1a438c50641 -r 90c5ed47435f src/common/contacts.py --- a/src/common/contacts.py Thu Jan 10 17:16:53 2013 +0100 +++ b/src/common/contacts.py Thu Jan 10 19:47:57 2013 +0100 @@ -490,12 +490,12 @@ 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