Commit 171c6592 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Remove useless if: no need to check the list before iterate over.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1534 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 8f1fa695
...@@ -197,10 +197,9 @@ class Application(object): ...@@ -197,10 +197,9 @@ class Application(object):
node.getAddress()) node.getAddress())
# Try to connect to master nodes. # Try to connect to master nodes.
if self.unconnected_master_node_set: for addr in list(self.unconnected_master_node_set):
for addr in list(self.unconnected_master_node_set): ClientConnection(self.em, client_handler, addr=addr,
ClientConnection(self.em, client_handler, addr=addr, connector_handler=self.connector_handler)
connector_handler=self.connector_handler)
self.em.poll(1) self.em.poll(1)
if len(self.unconnected_master_node_set | if len(self.unconnected_master_node_set |
self.negotiating_master_node_set) == 0: self.negotiating_master_node_set) == 0:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment