From 37935329d4851fed3ecad3f006719b46173846dc Mon Sep 17 00:00:00 2001 From: Vincent Pelletier <vincent@nexedi.com> Date: Mon, 22 Jun 2009 08:27:40 +0000 Subject: [PATCH] There is no need to call keys() on a dict to know its len. git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@643 71dcc9de-d417-0410-9af5-da40c76e7ee4 --- neo/client/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neo/client/app.py b/neo/client/app.py index 999b5837..a14b752c 100644 --- a/neo/client/app.py +++ b/neo/client/app.py @@ -829,7 +829,7 @@ class Application(object): self._waitMessage(handler=self.storage_handler) except NEOStorageConnectionFailure: continue - if len(self.local_var.node_tids.keys()) == len(storage_node_list): + if len(self.local_var.node_tids) == len(storage_node_list): break # Reorder tids -- 2.30.9