mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-06 22:25:38 +00:00
refactor string format to .format
This commit is contained in:
@@ -23,8 +23,8 @@ class Dotfile:
|
||||
self.trans = trans
|
||||
|
||||
def __str__(self):
|
||||
return 'key:\"%s\", src:\"%s\", dst:\"%s\", link:\"%s\"' % (self.key, self.src,
|
||||
self.dst, self.link)
|
||||
msg = 'key:\"{}\", src:\"{}\", dst:\"{}\", link:\"{}\"'
|
||||
return msg.format(self.key, self.src, self.dst, self.link)
|
||||
|
||||
def __eq__(self, other):
|
||||
return self.__dict__ == other.__dict__
|
||||
|
||||
Reference in New Issue
Block a user