From 965af3145a894f7e80618a648613885ff8e9830a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C5=81ukasz=20Nowak?= <luke@nexedi.com>
Date: Thu, 30 Apr 2009 11:34:28 +0000
Subject: [PATCH]  - conversion takes time, it is better to return same type
 (list) in all cases

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26739 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/Document/BusinessPath.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/product/ERP5/Document/BusinessPath.py b/product/ERP5/Document/BusinessPath.py
index 4eaa051aef..1ca4d04640 100644
--- a/product/ERP5/Document/BusinessPath.py
+++ b/product/ERP5/Document/BusinessPath.py
@@ -154,22 +154,22 @@ class BusinessPath(Path):
 
   # Dynamic context based categories
   def _getDynamicCategoryList(self, context):
-    return list(self._getDynamicSourceCategoryList(context)) \
-         + list(self._getDynamicDestinationCategoryList(context))
+    return self._getDynamicSourceCategoryList(context) \
+         + self._getDynamicDestinationCategoryList(context)
 
   def _getDynamicSourceCategoryList(self, context):
     method_id = self.getSourceMethodId()
     if method_id:
       method = getattr(self, method_id)
       return method(context)
-    return ()
+    return []
 
   def _getDynamicDestinationCategoryList(self, context):
     method_id = self.getDestinationMethodId()
     if method_id:
       method = getattr(self, method_id)
       return method(context)
-    return ()
+    return []
 
   # Core API
   def isBuildable(self, explanation):
-- 
2.30.9