1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-09 14:39:16 +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

@@ -22,3 +22,9 @@ class Dotfile:
def __str__(self):
return 'key:%s, src: %s, dst: %s, link: %s' % (self.key, self.src,
self.dst, self.link)
def __eq__(self, other):
return self.__dict__ == other.__dict__
def __hash__(self):
return hash(self.dst) ^ hash(self.src) ^ hash(self.key)