[PATCH 2 of 2 seda] flake8: fix line break after binary operator

Denis Laxalde denis.laxalde at logilab.fr
Mon Oct 29 12:20:01 CET 2018


Philippe Pepiot a écrit :
> # HG changeset patch
> # User Philippe Pepiot <philippe.pepiot at logilab.fr>
> # Date 1540811585 -3600
> #      Mon Oct 29 12:13:05 2018 +0100
> # Node ID 7a50aa30acf7f3ff9276378f3ef7c2dcd2ae3373
> # Parent  e2837a22e676f8e3f36fd4e23412dc6105327213
> # Available At https://hg.logilab.org/review/cubes/seda
> #              hg pull https://hg.logilab.org/review/cubes/seda -r 7a50aa30acf7
> flake8: fix line break after binary operator

Series applied, thanks.

> 
> diff --git a/cubicweb_seda/views/widgets.py b/cubicweb_seda/views/widgets.py
> --- a/cubicweb_seda/views/widgets.py
> +++ b/cubicweb_seda/views/widgets.py
> @@ -103,8 +103,8 @@ class ConceptOrTextField(ff.Field):
>           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
> 



More information about the saem-devel mailing list