[Erp5-report] r16928 - /erp5/trunk/products/ERP5Type/Base.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Oct 10 11:47:29 CEST 2007


Author: jerome
Date: Wed Oct 10 11:47:28 2007
New Revision: 16928

URL: http://svn.erp5.org?rev=16928&view=rev
Log:
better not to compare string with 'is'

Modified:
    erp5/trunk/products/ERP5Type/Base.py

Modified: erp5/trunk/products/ERP5Type/Base.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/Base.py?rev=16928&r1=16927&r2=16928&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Base.py (original)
+++ erp5/trunk/products/ERP5Type/Base.py Wed Oct 10 11:47:28 2007
@@ -1209,7 +1209,7 @@
 
       **kw allows to call setProperty as a generic setter (ex. setProperty(value_uid, portal_type=))
     """
-    if type is not 'string': # Speed
+    if type != 'string': # Speed
       if type in list_types: # Patch for OFS PropertyManager
         key += '_list'
     accessor_name = '_set' + UpperCase(key)




More information about the Erp5-report mailing list