product avoids duplicated items

git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@5 014f5005-505e-4b48-8d0a-63407b615a7c
master
LtWorf 2008-07-14 13:14:50 +07:00
parent 82e551cce4
commit 7817d6adaf
1 changed files with 3 additions and 1 deletions

@ -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