changeset 604:0185d2b508c8

Don't leak mutators (leading to leaked images)
author Stefano Rivera <stefano@rivera.za.net>
date Sat, 07 Sep 2013 23:58:39 +0200
parents c77257e849a1
children 3712911d6e8f
files nagslang/mutators.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)