mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-06 07:52:57 +00:00
add __repr__
This commit is contained in:
@@ -41,6 +41,9 @@ class Dotfile:
|
||||
msg = 'key:\"{}\", src:\"{}\", dst:\"{}\", link:\"{}\"'
|
||||
return msg.format(self.key, self.src, self.dst, self.link.name.lower())
|
||||
|
||||
def __repr__(self):
|
||||
return 'dotfile({})'.format(self.__str__())
|
||||
|
||||
def __eq__(self, other):
|
||||
return self.__dict__ == other.__dict__
|
||||
|
||||
|
||||
Reference in New Issue
Block a user