changeset f29ce53f497d in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=f29ce53f497d description: copy list before iterating on it in case we modify it.
diffstat:
src/common/contacts.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r d3923cf70905 -r f29ce53f497d src/common/contacts.py --- a/src/common/contacts.py Mon Jul 20 23:51:17 2009 +0200 +++ b/src/common/contacts.py Tue Jul 21 00:13:55 2009 +0200 @@ -292,7 +292,7 @@ def iter_contacts(self, account): if account in self._contacts: for jid in self._contacts[account].keys(): - for contact in self._contacts[account][jid]: + for contact in self._contacts[account][jid][:]: yield contact
def get_contact_from_full_jid(self, account, fjid):