flake8: fix line break after binary operator
authorPhilippe Pepiot <philippe.pepiot@logilab.fr>
Mon, 29 Oct 2018 12:13:05 +0100
changeset 2974 7a50aa30acf7
parent 2973 e2837a22e676
child 2975 e6a8bfd22cb2
flake8: fix line break after binary operator
cubicweb_seda/views/widgets.py
--- a/cubicweb_seda/views/widgets.py	Mon Oct 29 12:05:57 2018 +0100
+++ b/cubicweb_seda/views/widgets.py	Mon Oct 29 12:13:05 2018 +0100
@@ -103,8 +103,8 @@
         if not entity.has_eid() or getattr(entity, self.name) != text_val:
             yield (ff.Field(name=self.name, role='subject', eidparam=True), text_val)
         if (not entity.has_eid() and equivalent_eids) \
-           or (entity.has_eid() and
-               set(x.eid for x in entity.equivalent_concept) != equivalent_eids):
+           or (entity.has_eid()
+               and set(x.eid for x in entity.equivalent_concept) != equivalent_eids):
             subfield = ff.Field(name=self.concept_relation, role='subject', eidparam=True)
             # register the association between the value and the field, because on entity creation,
             # process_posted will be recalled on the newly created field, and if we don't do that it