[PATCH 29 of 52 Narval cube] [autopep8] E231 - Add missing whitespace

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


# HG changeset patch
# User Nsukami Patrick <ptrck at nskm dot xyz>
# Date 1585460423 0
#      Sun Mar 29 05:40:23 2020 +0000
# Node ID 20835f22ba21734bcd11ce00708b2a5634db6f02
# Parent  9a5afee96d229acbbf24f5dd38566688f97fc679
[autopep8] E231 - Add missing whitespace

diff --git a/cubicweb_narval/migration/postcreate.py b/cubicweb_narval/migration/postcreate.py
--- a/cubicweb_narval/migration/postcreate.py
+++ b/cubicweb_narval/migration/postcreate.py
@@ -28,10 +28,10 @@
 done = wf.add_state(_('done'))
 error = wf.add_state(_('error'), description=_('The execution of the Plan has been terminated (due to unexpected error)'))
 killed = wf.add_state(_('killed'), description=_('The execution of the Plan has been terminated (due to resource exhaustion)'))
-wf.add_transition(_('start'), ready, running, requiredgroups=('narval','managers'))
-wf.add_transition(_('end'), running, done, requiredgroups=('narval','managers'))
-wf.add_transition(_('fail'), running, error, requiredgroups=('narval','managers'))
-wf.add_transition(_('kill'), running, killed, requiredgroups=('narval','managers'))
+wf.add_transition(_('start'), ready, running, requiredgroups=('narval', 'managers'))
+wf.add_transition(_('end'), running, done, requiredgroups=('narval', 'managers'))
+wf.add_transition(_('fail'), running, error, requiredgroups=('narval', 'managers'))
+wf.add_transition(_('kill'), running, killed, requiredgroups=('narval', 'managers'))
 
 # create a dumb test recipe
 recipe = create_entity('Recipe', name=u'test.noop', script=u'pass')
diff --git a/cubicweb_narval/testutils.py b/cubicweb_narval/testutils.py
--- a/cubicweb_narval/testutils.py
+++ b/cubicweb_narval/testutils.py
@@ -35,7 +35,7 @@
 from narvalbot import server, main
 
 
-os.killpg = lambda x,y: None
+os.killpg = lambda x, y: None
 
 
 class Popen:
@@ -96,7 +96,7 @@
                 form['_cw_fields'] = ','.join([x for x in form.keys() if not x.startswith('__')])
             data, req = self.http_publish(url, form)
             fp = BytesIO(data)
-            if req.status_out not in (200,303):
+            if req.status_out not in (200, 303):
                 raise urllib.error.HTTPError(url, req.status_out,
                                         "Failed", req.headers_out, fp)
             try:
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
@@ -42,7 +42,7 @@
     __select__ = is_instance('Recipe')
 
     default_tab = _('narval.recipe.tab_config')
-    tabs = [default_tab, _('narval.recipe.tab_executions'),]
+    tabs = [default_tab, _('narval.recipe.tab_executions'), ]
     html_headers = no_robot_index
 
 




More information about the cubicweb-devel mailing list