[PATCH 01 of 26] [autopep8] E20 - Remove extraneous whitespace

Laurent Peuch cortex at worlddomination.be
Thu May 23 00:41:01 CEST 2019


# HG changeset patch
# User Laurent Peuch <cortex at worlddomination.be>
# Date 1558527665 -7200
#      Wed May 22 14:21:05 2019 +0200
# Node ID fcc06f1f20c1d8309ba49bfff2c10ffee70b90a6
# Parent  fb16bd0422205feb3787603b415e52c4b067a715
[autopep8] E20 - Remove extraneous whitespace

diff --git a/cubicweb/utils.py b/cubicweb/utils.py
--- a/cubicweb/utils.py
+++ b/cubicweb/utils.py
@@ -248,7 +248,7 @@ class HTMLHead(UStringIO):
         :param override: if False, don't set the variable value if the variable
                          is already defined. Default is True.
         """
-        self.jsvars.append( (var, value, override) )
+        self.jsvars.append((var, value, override))
 
     def add_post_inline_script(self, content):
         self.post_inlined_scripts.append(content)
@@ -274,12 +274,12 @@ class HTMLHead(UStringIO):
         :param cssfile: the stylesheet's URL
         """
         if (cssfile, media) not in self.cssfiles:
-            self.cssfiles.append( (cssfile, media) )
+            self.cssfiles.append((cssfile, media))
 
     def add_ie_css(self, cssfile, media='all', iespec=u'[if lt IE 8]'):
         """registers some IE specific CSS"""
         if (cssfile, media, iespec) not in self.ie_cssfiles:
-            self.ie_cssfiles.append( (cssfile, media, iespec) )
+            self.ie_cssfiles.append((cssfile, media, iespec))
 
     def add_unload_pagedata(self):
         """registers onunload callback to clean page data on server"""
@@ -431,7 +431,7 @@ class HTMLStream(object):
         req.main_stream = self
 
     def add_htmlattr(self, attrname, attrvalue):
-        self._htmlattrs.append( (attrname, attrvalue) )
+        self._htmlattrs.append((attrname, attrvalue))
 
     def set_htmlattrs(self, attrs):
         self._htmlattrs = attrs



More information about the cubicweb-devel mailing list