From 33eb782004357cb3334d84d97c31a12ca9d9a091 Mon Sep 17 00:00:00 2001 From: Valentin Samir Date: Wed, 23 Oct 2013 16:54:11 +0200 Subject: [PATCH] [ldap_locks] Pas de iteritems sur un dict que l'on modifie durant l'iteration. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On utilise plutôt items() --- ldap_locks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ldap_locks.py b/ldap_locks.py index 60ab19a..1795d64 100644 --- a/ldap_locks.py +++ b/ldap_locks.py @@ -93,7 +93,7 @@ class LdapLockHolder: except: pass else: - for item, value in self.locks[Id].iteritems(): + for item, value in self.locks[Id].items(): try: self.removelock(item, value, Id) except: