From 6dea446fe66964167fa530b708684c4efb719f7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Wed, 10 Oct 2007 09:47:28 +0000 Subject: [PATCH] better not to compare string with 'is' git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16928 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Type/Base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product/ERP5Type/Base.py b/product/ERP5Type/Base.py index 2709f13aea..1557622fc8 100644 --- a/product/ERP5Type/Base.py +++ b/product/ERP5Type/Base.py @@ -1209,7 +1209,7 @@ class Base( CopyContainer, **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) -- 2.30.9