From 413116a40273096192dcda27f38ef3e84161a141 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 28 Jul 2009 23:32:19 +0000 Subject: [PATCH] Remove redundant loop inside depgraph._show_missed_update_slot_conflicts(). svn path=/main/trunk/; revision=13853 --- pym/_emerge/depgraph.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index 527b2f9fa..2418ca521 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -351,19 +351,19 @@ class depgraph(object): msg.append(str(pkg)) msg.append(" conflicts with\n") - for parent, atom in parent_atoms: - msg.append(2*indent) - if isinstance(parent, - (PackageArg, AtomArg)): - # For PackageArg and AtomArg types, it's - # redundant to display the atom attribute. - msg.append(str(parent)) - else: - # Display the specific atom from SetArg or - # Package types. - msg.append("%s required by %s" % (atom, parent)) - msg.append("\n") + msg.append(2*indent) + if isinstance(parent, + (PackageArg, AtomArg)): + # For PackageArg and AtomArg types, it's + # redundant to display the atom attribute. + msg.append(str(parent)) + else: + # Display the specific atom from SetArg or + # Package types. + msg.append("%s required by %s" % (atom, parent)) msg.append("\n") + msg.append("\n") + sys.stderr.write("".join(msg)) sys.stderr.flush() -- 2.26.2