# HG changeset patch # User BenoƮt Allard # Date 1414409377 -3600 # Node ID b15022ae484a1dc6ab44d1364c1591892656e3a6 # Parent e3ee542a89be25377cc4863d9c92475667d3e315 Fix isProductOrphan diff -r e3ee542a89be -r b15022ae484a farolluz/document.py --- a/farolluz/document.py Mon Oct 27 11:48:42 2014 +0100 +++ b/farolluz/document.py Mon Oct 27 12:29:37 2014 +0100 @@ -291,9 +291,9 @@ def isProductOrphan(self, productid): """ Returns if a productid is mentioned nowhere in the document """ - for item in self.mentionsProductId(productid): - return True - return False + for _ in self.mentionsProductId(productid): + return False + return True def changeProductID(self, old, new): for item in self.mentionsProductId(old):