product avoids duplicated items

git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@5 014f5005-505e-4b48-8d0a-63407b615a7c
This commit is contained in:
LtWorf 2008-07-14 13:14:50 +00:00
parent 82e551cce4
commit 7817d6adaf

View File

@ -68,7 +68,9 @@ class relation (object):
for i in self.content:
for j in other.content:
newt.content.append(i+j)
n=i+j
if n not in newt.content:
newt.content.append(i+j)
return newt