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

Laurent Peuch cortex at worlddomination.be
Wed Jan 15 10:58:25 CET 2020


# HG changeset patch
# User Laurent Peuch <cortex at worlddomination.be>
# Date 1578580999 -3600
#      Thu Jan 09 15:43:19 2020 +0100
# Node ID d32ad44f79253b2b0fac05b5acfc236673ee2a99
# Parent  097005e98040682c83769e741142121654987b5d
# Available At https://hg.logilab.org/users/lpeuch/yams
#              hg pull https://hg.logilab.org/users/lpeuch/yams -r d32ad44f7925
[misc] remove unused variable

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)
                 previous = self
                 for next in meta:
                     if previous.creation_rank < next.creation_rank:



More information about the cubicweb-devel mailing list