[PATCH 2 of 9 yams V2] [misc] remove unused variable

Nicolas Chauvat nicolas.chauvat at logilab.fr
Wed Jan 15 12:18:48 CET 2020


Hi Laurent,

On Wed, Jan 15, 2020 at 10:58:25AM +0100, Laurent Peuch wrote:

> diff --git a/yams/buildobjs.py b/yams/buildobjs.py
> --- a/yams/buildobjs.py
> +++ b/yams/buildobjs.py
> @@ -267,7 +267,7 @@ class AbstractTypedAttribute(SubjectRela
>          if self.metadata:
>              meta = sorted(metadata.values(), key=lambda x: x.creation_rank)
>              if meta[0].creation_rank < self.creation_rank:
> -                m_iter = iter(meta)
> +                iter(meta)

This line seems useless, doesn't it ? 

-- 
Nicolas Chauvat

logilab.fr - services en informatique scientifique et gestion de connaissances  



More information about the cubicweb-devel mailing list