mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
b86a502fbb
commit
c9f6eb7b17
@ -76,7 +76,13 @@ class TextStyle(object):
|
||||
getattr(self, x) for x in self.ALL_PROPS))
|
||||
|
||||
def __eq__(self, other):
|
||||
return hash(self) == hash(other)
|
||||
for x in self.ALL_PROPS:
|
||||
if getattr(self, x) != getattr(other, x, None):
|
||||
return False
|
||||
return True
|
||||
|
||||
def __ne__(self, other):
|
||||
return not self == other
|
||||
|
||||
class LineBreak(object):
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user