From d7b173f99edad66db74665c5394aee6efaed5b3e Mon Sep 17 00:00:00 2001
From: Vincent Pelletier <vincent@nexedi.com>
Date: Thu, 15 Oct 2009 12:37:47 +0000
Subject: [PATCH] Small coding style improvement: multiple statements belong to
 multiple lines.

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

diff --git a/product/CMFActivity/ActiveObject.py b/product/CMFActivity/ActiveObject.py
index 220e697377..0c781f07ba 100644
--- a/product/CMFActivity/ActiveObject.py
+++ b/product/CMFActivity/ActiveObject.py
@@ -117,7 +117,8 @@ class ActiveObject(ExtensionClass.Base):
       active_process = portal.unrestrictedTraverse(active_process)
 
     activity_tool = getattr(portal, 'portal_activities', None)
-    if activity_tool is None: return self # Do nothing if no portal_activities
+    if activity_tool is None:
+      return self # Do nothing if no portal_activities
     # activate returns an ActiveWrapper
     # a queue can be provided as well as extra parameters
     # which can be used for example to define deferred tasks
@@ -126,7 +127,8 @@ class ActiveObject(ExtensionClass.Base):
   security.declareProtected( permissions.ModifyPortalContent, 'flushActivity' )
   def flushActivity(self, invoke=0, **kw):
     activity_tool = getToolByName(self, 'portal_activities', None)
-    if activity_tool is None: return # Do nothing if no portal_activities
+    if activity_tool is None:
+      return # Do nothing if no portal_activities
     # flush all activities related to this object
     activity_tool.flush(self, invoke=invoke, **kw)
 
@@ -164,7 +166,8 @@ class ActiveObject(ExtensionClass.Base):
   security.declareProtected( permissions.View, 'getActiveProcess' )
   def getActiveProcess(self):
     activity_tool = getToolByName(self, 'portal_activities', None)
-    if activity_tool is None: return None # Do nothing if no portal_activities
+    if activity_tool is None:
+      return None # Do nothing if no portal_activities
     return activity_tool.getActiveProcess()
 
   security.declareProtected(permissions.ModifyPortalContent,
-- 
2.30.9