set.remove() returns None, so can't use it in a function call
authorMarius Mauch <genone@gentoo.org>
Sun, 18 Feb 2007 20:19:29 +0000 (20:19 -0000)
committerMarius Mauch <genone@gentoo.org>
Sun, 18 Feb 2007 20:19:29 +0000 (20:19 -0000)
svn path=/main/trunk/; revision=5995

pym/portage/dbapi/vartree.py

index 4a6a58342dbbcf07d9186be58e3106345e8d7794..ed08dbfd6e851689503b929049c745a1c406caa6 100644 (file)
@@ -1219,7 +1219,7 @@ class dblink(object):
                        elif len(consumers.difference(contents)) == 0:
                                otherlibs = set(otherlibs)
                                for ol in otherlibs.intersection(consumers):
-                                       if has_external_consumers(ol, contents, otherlibs.copy().remove(lib)):
+                                       if has_external_consumers(ol, contents, otherlibs.difference([lib])):
                                                return True
                                return False
                        # used by external objects directly