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

Commit 682e191

Browse files
author
misakwa
committed
Fix TSPayload equality check
1 parent 632c88e commit 682e191

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

thriftpy/thrift.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,9 +220,9 @@ def __eq__(self, other):
220220
if not isinstance(other, self.__class__):
221221
return False
222222
keys = self.__slots__
223-
vals1 = [getattr(self, k) for k in keys]
224-
vals2 = [getattr(self, k) for k in keys]
225-
return vals1 == vals2
223+
this = [getattr(self, k) for k in keys]
224+
other_ = [getattr(other, k) for k in keys]
225+
return this == other_
226226

227227
def __ne__(self, other):
228228
return not self.__eq__(other)

0 commit comments

Comments
 (0)