[cleanup] Fix flake8 failures
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 26 Aug 2016 07:55:29 +0200
changeset 1559 ac4598bdf2c5
parent 1558 a12c97e1c4d4
child 1560 01add3208c55
[cleanup] Fix flake8 failures
hooks.py
site_cubicweb.py
--- a/hooks.py	Thu Aug 25 17:52:05 2016 +0200
+++ b/hooks.py	Fri Aug 26 07:55:29 2016 +0200
@@ -230,7 +230,7 @@
 
     vreg.register_all(globals().values(), __name__)
 
-    for _, parent_rdefs in seda_profile_container_def(vreg.schema):
+    for etype, parent_rdefs in seda_profile_container_def(vreg.schema):
         for rtype, role in parent_rdefs:
             if SEDA_PARENT_RTYPES.setdefault(rtype, role) != role:
                 raise Exception('inconsistent relation', rtype, role)
--- a/site_cubicweb.py	Thu Aug 25 17:52:05 2016 +0200
+++ b/site_cubicweb.py	Fri Aug 26 07:55:29 2016 +0200
@@ -54,7 +54,7 @@
 from cubicweb.web import formfields  # noqa
 
 
-@monkeypatch(formfields)
+@monkeypatch(formfields)  # noqa
 def guess_field(eschema, rschema, role='subject', req=None, **kwargs):
     """This function return the most adapted field to edit the given relation
     (`rschema`) where the given entity type (`eschema`) is the subject or object