Flake8 fixes
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 21 Feb 2017 17:45:01 +0100
changeset 119 5a38bda4898c
parent 118 c8365d3bfd84
child 120 d70eed2a940e
Flake8 fixes
views/__init__.py
--- a/views/__init__.py	Wed Feb 08 16:54:15 2017 +0100
+++ b/views/__init__.py	Tue Feb 21 17:45:01 2017 +0100
@@ -17,7 +17,6 @@
 
 from jinja2 import Environment, PackageLoader
 
-from cubicweb import _
 from cubicweb.view import View
 from cubicweb.web.views import urlrewrite, startup
 
@@ -51,7 +50,7 @@
     """
     class_name = template_name.capitalize() + 'View'
     regid = 'sherpa.' + template_name
-    if (template_name == 'index') :
+    if template_name == 'index':
         regid = 'index'
 
     return type(class_name, (JinjaStaticView,), {'__regid__': regid,
@@ -64,6 +63,7 @@
 SedaView = jinja_static_view('seda', u'Le SEDA')
 IndexView = jinja_static_view('index')
 
+
 class SherpaReqRewriter(urlrewrite.SimpleReqRewriter):
     rules = [
         (urlrewrite.rgx('/'), dict(vid='sherpa.index')),