fix traceback

This commit is contained in:
Yann Leboulanger 2013-01-10 19:47:57 +01:00
parent 9d9bbce366
commit 8079736493
1 changed files with 2 additions and 2 deletions

View File

@ -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