[PATCH 22 of 24 Openidrelay cube] [flake8] fix various errors

Nsukami Patrick ptrck at nskm.xyz
Wed Apr 1 09:54:05 CEST 2020


# HG changeset patch
# User Nsukami Patrick <ptrck at nskm dot xyz>
# Date 1585511688 0
#      Sun Mar 29 19:54:48 2020 +0000
# Node ID d3f9d2f62d025423f230e03576ee6ec0a6d65c70
# Parent  25ac6bfb7e18027d30ec0b3eff5f9c841fbc5b67
[flake8] fix various errors

- fix E124 closing bracket does not match visual indentation
- fix E128 continuation line under-indented for visual indent

diff --git a/cubicweb_openidrelay/views.py b/cubicweb_openidrelay/views.py
--- a/cubicweb_openidrelay/views.py
+++ b/cubicweb_openidrelay/views.py
@@ -266,8 +266,7 @@
         text = self._cw._('openid login')
         w(u'<a title="%s" href="%s"><img style="width:16px;height:16px;" src="%s" alt="%s" /></a>' %
           (text, self.onclick % ('openidlogbox', '__openiduri'),
-           self._cw.uiprops['OPENID_SMALL_ICON'], text,
-                ))
+           self._cw.uiprops['OPENID_SMALL_ICON'], text))
         self._cw.view('openidlogform', rset=self.cw_rset, id='openidlogbox', w=w)
 
 
@@ -276,7 +275,7 @@
     boxid = 'openidlogbox'
 
     __openiduri = ff.StringField('__openiduri', label=_('openiduri'),
-                                widget=fw.TextInput({'class': 'data'}))
+                                 widget=fw.TextInput({'class': 'data'}))
 
     onclick_args = ('openidlogbox', '__openiduri')
 




More information about the cubicweb-devel mailing list