[PATCH 30 of 52 Narval cube] [autopep8] E241 - Fix extraneous whitespace around keywords

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


# HG changeset patch
# User Nsukami Patrick <ptrck at nskm dot xyz>
# Date 1585460424 0
#      Sun Mar 29 05:40:24 2020 +0000
# Node ID bd21d4801cfc374bd36a24548fbbe68e17518d3e
# Parent  20835f22ba21734bcd11ce00708b2a5634db6f02
[autopep8] E241 - Fix extraneous whitespace around keywords

diff --git a/cubicweb_narval/logformat.py b/cubicweb_narval/logformat.py
--- a/cubicweb_narval/logformat.py
+++ b/cubicweb_narval/logformat.py
@@ -16,11 +16,11 @@
 
 
 REVERSE_SEVERITIES = {
-    logging.DEBUG:   _('DEBUG'),
-    logging.INFO:    _('INFO'),
+    logging.DEBUG: _('DEBUG'),
+    logging.INFO: _('INFO'),
     logging.WARNING: _('WARNING'),
-    logging.ERROR:   _('ERROR'),
-    logging.FATAL:   _('FATAL')
+    logging.ERROR: _('ERROR'),
+    logging.FATAL: _('FATAL')
 }
 
 
@@ -151,7 +151,7 @@
                                lines[-1]))
             divs = (
                 (div_snip_id, snip, u'expand', "class='collapsed'"),
-                (div_full_id, u'<pre>' + msg + u'</pre>',  u'collapse', "class='hidden'")
+                (div_full_id, u'<pre>' + msg + u'</pre>', u'collapse', "class='hidden'")
             )
             for div_id, content, button, h_class in divs:
                 text = _(button)
diff --git a/cubicweb_narval/schema.py b/cubicweb_narval/schema.py
--- a/cubicweb_narval/schema.py
+++ b/cubicweb_narval/schema.py
@@ -61,8 +61,8 @@
 
 class execution_log(RelationDefinition):
     __permissions__ = {
-        'read':   ('managers', 'users', 'guests', 'narval'),
-        'add':    ('managers', 'narval',),
+        'read': ('managers', 'users', 'guests', 'narval'),
+        'add': ('managers', 'narval',),
         'delete': ('managers',),
     }
     subject = 'Plan'




More information about the cubicweb-devel mailing list