Commit fed72d56 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Use 'in' keyword instead of dict.get.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1430 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 9e780199
......@@ -284,10 +284,10 @@ class NodeManager(object):
return self._uuid_dict.get(uuid, None)
def hasAddress(self, address):
return self._address_dict.get(address, None) is not None
return address in self._address_dict
def hasUUID(self, uuid):
return self._uuid_dict.get(uuid, None) is not None
return uuid in self._uuid_dict
def _createNode(self, klass, **kw):
node = klass(self, **kw)
......
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