[Neo-report] r2076 gregory - /trunk/neo/node.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu May 6 11:30:25 CEST 2010


Author: gregory
Date: Thu May  6 11:30:23 2010
New Revision: 2076

Log:
Swap boolean conditions to evaluate the boolean first.

Modified:
    trunk/neo/node.py

Modified: trunk/neo/node.py
==============================================================================
--- trunk/neo/node.py [iso-8859-1] (original)
+++ trunk/neo/node.py [iso-8859-1] Thu May  6 11:30:23 2010
@@ -307,7 +307,7 @@
     def _updateIdentified(self, node):
         uuid = node.getUUID()
         identified = node.isIdentified()
-        if uuid in self._identified_dict and not identified:
+        if not identified and uuid in self._identified_dict:
             del self._identified_dict[uuid]
         elif identified:
             self._identified_dict[uuid] = node





More information about the Neo-report mailing list