# HG changeset patch # User Julien Cristau # Date 1406042543 -7200 # Node ID a84922befb89eabe484c0f20691a1300422c81c4 # Parent cba05de9a1a0255f86e4b9ed3016fe5ad7d2a18c Fix Binary.__eq__ (closes #4172701) Due to a typo we always returned true, which was unhelpful. diff -r cba05de9a1a0 -r a84922befb89 __init__.py --- a/__init__.py Fri Jul 18 16:11:41 2014 +0200 +++ b/__init__.py Tue Jul 22 17:22:23 2014 +0200 @@ -125,7 +125,7 @@ def __eq__(self, other): if not isinstance(other, Binary): return False - return self.getvalue(), other.getvalue() + return self.getvalue() == other.getvalue() # Binary helpers to store/fetch python objects