Merge "modify RowEvent hash key"

This commit is contained in:
Zuul 2019-03-08 20:30:05 +00:00 committed by Gerrit Code Review
commit 1ae5385b67
1 changed files with 3 additions and 2 deletions

View File

@ -38,14 +38,15 @@ class RowEvent(object):
@property
def key(self):
return (self.__class__, self.table, self.events, self.conditions)
return (self.__class__, self.table, tuple(self.events))
def __hash__(self):
return hash(self.key)
def __eq__(self, other):
try:
return self.key == other.key
return (self.key == other.key and
self.conditions == other.conditions)
except AttributeError:
return False