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

Laurent Peuch cortex at worlddomination.be
Tue Jan 14 14:18:17 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 5321a3215c8a6edac7489609012683717d15d7ed
# Parent  1d93c6bd705b3b8c97ea31f2cea297d7c6fe9dba
# Available At https://hg.logilab.org/users/lpeuch/yams
#              hg pull https://hg.logilab.org/users/lpeuch/yams -r 5321a3215c8a
[misc] remove unused variable

diff --git a/yams/buildobjs.py b/yams/buildobjs.py
--- a/yams/buildobjs.py
+++ b/yams/buildobjs.py
@@ -255,7 +255,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