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:
parent
82e551cce4
commit
7817d6adaf
@ -68,6 +68,8 @@ class relation (object):
|
|||||||
|
|
||||||
for i in self.content:
|
for i in self.content:
|
||||||
for j in other.content:
|
for j in other.content:
|
||||||
|
n=i+j
|
||||||
|
if n not in newt.content:
|
||||||
newt.content.append(i+j)
|
newt.content.append(i+j)
|
||||||
return newt
|
return newt
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user