[Erp5-report] r30369 - /erp5/trunk/products/ERP5Type/Constraint/PropertyTypeValidity.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Nov 6 13:59:19 CET 2009


Author: kazuhiko
Date: Fri Nov  6 13:59:15 2009
New Revision: 30369

URL: http://svn.erp5.org?rev=30369&view=rev
Log:
Boolean type exists since Python 2.3. We don't need at all the compatibility with Python 2.2 or older.

Modified:
    erp5/trunk/products/ERP5Type/Constraint/PropertyTypeValidity.py

Modified: erp5/trunk/products/ERP5Type/Constraint/PropertyTypeValidity.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/Constraint/PropertyTypeValidity.py?rev=30369&r1=30368&r2=30369&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Constraint/PropertyTypeValidity.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/Constraint/PropertyTypeValidity.py [utf8] Fri Nov  6 13:59:15 2009
@@ -31,10 +31,7 @@
 from Constraint import Constraint
 from DateTime import DateTime
 
-try:
-  boolean_types = (int, bool)
-except NameError:
-  boolean_types = (int, )
+boolean_types = (int, bool)
 
 class PropertyTypeValidity(Constraint):
   """




More information about the Erp5-report mailing list