# HG changeset patch # User Stefano Rivera # Date 1378591119 -7200 # Node ID 0185d2b508c8ea57f2abda050e83c6e6322518bc # Parent c77257e849a1a8ad6ff7420b25828f4e06da5d91 Don't leak mutators (leading to leaked images) diff -r c77257e849a1 -r 0185d2b508c8 nagslang/mutators.py --- a/nagslang/mutators.py Sat Sep 07 23:57:55 2013 +0200 +++ b/nagslang/mutators.py Sat Sep 07 23:58:39 2013 +0200 @@ -18,7 +18,7 @@ def __eq__(self, other): if not isinstance(other, Mutator): return NotImplemented - return (self._func is other._func) and (self._args == other._args) + return (self._func == other._func) and (self._args == other._args) def __repr__(self): return '<%s %r>' % (self.__class__.__name__, self._args)