1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-10 03:59:17 +00:00

implement include for #12

This commit is contained in:
deadc0de6
2017-09-15 15:32:07 +02:00
parent fef1bdc8c3
commit 530d620730
4 changed files with 116 additions and 67 deletions

View File

@@ -24,3 +24,9 @@ class Action:
def __str__(self):
return 'key:%s -> \"%s\"' % (self.key, self.action)
def __eq__(self, other):
return self.__dict__ == other.__dict__
def __hash__(self):
return hash(self.key) ^ hash(self.action)