From 720a5df45808ae2c1a32dc8b8182b136453775f6 Mon Sep 17 00:00:00 2001
From: Nicolas Dumazet <nicolas.dumazet@nexedi.com>
Date: Tue, 25 May 2010 02:11:23 +0000
Subject: [PATCH] small boolean cleanup

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35588 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Type/CopySupport.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/product/ERP5Type/CopySupport.py b/product/ERP5Type/CopySupport.py
index e7367a4d3e..04557720ac 100644
--- a/product/ERP5Type/CopySupport.py
+++ b/product/ERP5Type/CopySupport.py
@@ -112,7 +112,7 @@ class CopyContainer:
           self._updateInternalRelatedContent(object=subobject,
                                              path_item_list=path_item_list,
                                              new_id=new_id)
-      changed = 0
+      changed = False
       category_list = object.getCategoryList()
       path_len = len(path_item_list)
       for position in xrange(len(category_list)):
@@ -120,8 +120,8 @@ class CopyContainer:
           if category_name[1:path_len + 1] == path_item_list: # XXX Should be possible to do this in a cleaner way
               category_name[path_len] = new_id
               category_list[position] = '/'.join(category_name)
-              changed = 1
-      if changed != 0:
+              changed = True
+      if changed:
           object.setCategoryList(category_list)
 
   def _recursiveSetActivityAfterTag(self, obj, activate_kw=None):
-- 
2.30.9