[PATCH 03 of 15 yams V3] [misc] remove usless code

Laurent Peuch cortex at worlddomination.be
Wed Jan 15 20:59:03 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 c506694c7d4ee2202bf76bbe816b809f2303f88f
# Parent  645413811401c1074323679ad9daa7922ab70634
# Available At https://hg.logilab.org/users/lpeuch/yams
#              hg pull https://hg.logilab.org/users/lpeuch/yams -r c506694c7d4e
[misc] remove usless code

diff --git a/yams/buildobjs.py b/yams/buildobjs.py
--- a/yams/buildobjs.py
+++ b/yams/buildobjs.py
@@ -267,7 +267,6 @@ 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)
                 previous = self
                 for next in meta:
                     if previous.creation_rank < next.creation_rank:



More information about the cubicweb-devel mailing list