From a7445c7ce6c40865fa8aab08ab839709c4efdb67 Mon Sep 17 00:00:00 2001 From: Vincent Pelletier <vincent@nexedi.com> Date: Fri, 22 Jul 2011 08:37:37 +0000 Subject: [PATCH] Simplify code. --- product/ERP5Type/patches/PythonScript.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/product/ERP5Type/patches/PythonScript.py b/product/ERP5Type/patches/PythonScript.py index 64b080e7e9..38d9c223bc 100644 --- a/product/ERP5Type/patches/PythonScript.py +++ b/product/ERP5Type/patches/PythonScript.py @@ -17,10 +17,7 @@ from App.ImageFile import ImageFile def haveProxyRole(self): """if a script has proxy role, return True""" - if self._proxy_roles: - return True - return False - + return bool(self._proxy_roles) def om_icons(self): """Return a list of icon URLs to be displayed by an ObjectManager""" -- 2.30.9