]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
another py3k fix
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 28 Jan 2012 21:04:38 +0000 (16:04 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 28 Jan 2012 21:04:38 +0000 (16:04 -0500)
test/ext/test_mutable.py

index 60576f007886c0edc5b1a9666b0aac621bf470cc..c345d8fe38c3507c2072cae05f55613f0420a83d 100644 (file)
@@ -21,6 +21,10 @@ class FooWithEq(object):
     def __init__(self, **kw):
         for k in kw:
             setattr(self, k, kw[k])
+
+    def __hash__(self):
+        return hash(self.id)
+
     def __eq__(self, other):
         return self.id == other.id