[PATCH 3 of 8 Invoice cube] [autopep8] E22 - Fix extraneous whitespace around keywords

Nsukami Patrick ndkpatt at gmail.com
Wed Jun 12 14:55:25 CEST 2019


# HG changeset patch
# User Nsukami Patrick <ndkpatt at gmail dot com>
# Date 1560343910 0
#      Wed Jun 12 12:51:50 2019 +0000
# Node ID 402897b2bb0a392d1c938b0cbccf91b8ac696b6a
# Parent  3f5fb8b625f06d5786ecd27aa2f1fd0aba9b7ad3
[autopep8] E22 - Fix extraneous whitespace around keywords

diff --git a/cubicweb_invoice/migration/0.3.1_Any.py b/cubicweb_invoice/migration/0.3.1_Any.py
--- a/cubicweb_invoice/migration/0.3.1_Any.py
+++ b/cubicweb_invoice/migration/0.3.1_Any.py
@@ -1,6 +1,6 @@
 #Invoice workflow migration
 
-waiting_command  = add_state(_('waiting command'), 'Invoice', initial=True)
+waiting_command = add_state(_('waiting command'), 'Invoice', initial=True)
 planned = rql('State S WHERE S state_of ET, ET name "Invoice", S name "planned"')[0][0]
 add_transition(_('command received'), 'Invoice', (waiting_command,), planned)
 
diff --git a/cubicweb_invoice/migration/postcreate.py b/cubicweb_invoice/migration/postcreate.py
--- a/cubicweb_invoice/migration/postcreate.py
+++ b/cubicweb_invoice/migration/postcreate.py
@@ -1,12 +1,12 @@
 # postcreate script. You could setup a workflow here for example
 
 wf = add_workflow('invoice workflow', 'Invoice')
-waiting_command  = wf.add_state(_('waiting command'), initial=True)
+waiting_command = wf.add_state(_('waiting command'), initial=True)
 planned = wf.add_state(_(u'planned'))
 toissue = wf.add_state(_(u'to issue'))
-tosend  = wf.add_state(_(u'to send'))
-sent    = wf.add_state(_(u'sent'))
-payed   = wf.add_state(_(u'payed'))
+tosend = wf.add_state(_(u'to send'))
+sent = wf.add_state(_(u'sent'))
+payed = wf.add_state(_(u'payed'))
 
 wf.add_transition(_('command received'), waiting_command, planned)
 wf.add_transition(_(u'work done'), planned, toissue)



More information about the cubicweb-devel mailing list