Skip to content

Commit

Permalink
Fix __eq__ for CoverArtImage
Browse files Browse the repository at this point in the history
  • Loading branch information
samj1912 committed Feb 17, 2017
1 parent a021258 commit 9d9e372
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions picard/coverart/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,8 @@ def __str__(self):
def __eq__(self, other):
if self and other:
return (self.datahash, self.types) == (other.datahash, other.types)
elif not self and not other:
return True
else:
return False

Expand Down

0 comments on commit 9d9e372

Please sign in to comment.