1
0
Fork 0
mirror of https://github.com/yweber/lodel2.git synced 2026-07-01 05:10:49 +02:00

[#45] Changed the __hash__ implementation of the EmComponent class

This commit is contained in:
Roland Haroutiounian 2015-07-24 16:53:11 +02:00
commit c916801c99

View file

@ -79,7 +79,8 @@ class EmComponent(object):
## @brief Hash function that allows to compare two EmComponent
# @return EmComponent+ClassName+uid
def __hash__(self):
return "EmComponent"+self.__class__.__name__+str(self.uid)
return hash(str(self.attr_dump))
# return "EmComponent"+self.__class__.__name__+str(self.uid)
## @brief Test if two EmComponent are "equals"
# @return True or False