Skip to content

Commit

Permalink
Merge pull request #25 from motivator/attr_cmp
Browse files Browse the repository at this point in the history
make __eq__ compare more than just key/value
  • Loading branch information
motivator committed May 26, 2013
2 parents bd727b3 + 1614e92 commit 5442b0f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/clusto/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,8 @@ def __eq__(self, other):
if not isinstance(other, Attribute):
return False

return ((self.key == other.key) and (self.value == other.value))
return ((self.key == other.key) and (self.subkey == other.subkey) and
(self.number == other.number) and (self.value == other.value))

def __repr__(self):

Expand Down

0 comments on commit 5442b0f

Please sign in to comment.