[Neo-report] r2058 gregory - /trunk/neo/neoctl/app.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Apr 30 15:48:33 CEST 2010


Author: gregory
Date: Fri Apr 30 15:48:33 2010
New Revision: 2058

Log:
Use bool() instead of not(not())

Modified:
    trunk/neo/neoctl/app.py

Modified: trunk/neo/neoctl/app.py
==============================================================================
--- trunk/neo/neoctl/app.py [iso-8859-1] (original)
+++ trunk/neo/neoctl/app.py [iso-8859-1] Fri Apr 30 15:48:33 2010
@@ -128,7 +128,7 @@
         node = self.asNode(params[0])
         state = self.asNodeState(params[1])
         if len(params) == 3:
-            update_partition_table = not(not(int(params[2])))
+            update_partition_table = bool(int(params[2]))
         else:
             update_partition_table = False
         return self.neoctl.setNodeState(node, state,





More information about the Neo-report mailing list