[PATCH 41 of 52 Narval cube] [autopep8] W504 - Fix line break after binary operator

Nsukami Patrick ptrck at nskm.xyz
Wed Apr 1 11:34:41 CEST 2020


# HG changeset patch
# User Nsukami Patrick <ptrck at nskm dot xyz>
# Date 1585460448 0
#      Sun Mar 29 05:40:48 2020 +0000
# Node ID 80dd4075e2d46f2fa483758c5008d7a896245b8d
# Parent  4891479d550813cd187396b229fa9fa577810e0c
[autopep8] W504 - Fix line break after binary operator

diff --git a/cubicweb_narval/views/plan.py b/cubicweb_narval/views/plan.py
--- a/cubicweb_narval/views/plan.py
+++ b/cubicweb_narval/views/plan.py
@@ -179,8 +179,8 @@
     Produces a JSON representation of the created entities.
     '''
     __regid__ = 'create_subentity'
-    __select__ = (json.JsonEntityView.__select__ &
-                  match_form_params('__cwetype__', '__cwrel__'))
+    __select__ = (json.JsonEntityView.__select__
+                  & match_form_params('__cwetype__', '__cwrel__'))
 
     def call(self):
         self._cw.ajax_request = True
diff --git a/cubicweb_narval/views/recipe.py b/cubicweb_narval/views/recipe.py
--- a/cubicweb_narval/views/recipe.py
+++ b/cubicweb_narval/views/recipe.py
@@ -58,8 +58,8 @@
 
 
 class RecipeExecutionsTab(EntityView):
-    __select__ = (is_instance('Recipe') &
-                  has_related_entities('execution_of', 'object'))
+    __select__ = (is_instance('Recipe')
+                  & has_related_entities('execution_of', 'object'))
     __regid__ = 'narval.recipe.tab_executions'
 
     html_headers = no_robot_index




More information about the cubicweb-devel mailing list