Skip to content
This repository has been archived by the owner on Dec 10, 2018. It is now read-only.

Commit

Permalink
Fix TSPayload equality check
Browse files Browse the repository at this point in the history
  • Loading branch information
misakwa committed Nov 22, 2016
1 parent 632c88e commit 7f3f6bd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions thriftpy/thrift.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,9 @@ def __eq__(self, other):
if not isinstance(other, self.__class__):
return False
keys = self.__slots__
vals1 = [getattr(self, k) for k in keys]
vals2 = [getattr(self, k) for k in keys]
return vals1 == vals2
this = [getattr(self, k) for k in keys]
other = [getattr(other, k) for k in keys]
return this == other

def __ne__(self, other):
return not self.__eq__(other)
Expand Down

0 comments on commit 7f3f6bd

Please sign in to comment.