diff options
-rw-r--r-- | qpid/python/qmf/console.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/qpid/python/qmf/console.py b/qpid/python/qmf/console.py index cdc3ae3406..17d179b4d6 100644 --- a/qpid/python/qmf/console.py +++ b/qpid/python/qmf/console.py @@ -940,6 +940,12 @@ class ObjectId: codec.write_uint64(self.first) codec.write_uint64(self.second) + def __hash__(self): + return (self.first, self.second).__hash__() + + def __eq__(self, other): + return (self.first, self.second).__eq__(other) + class Object(object): """ """ def __init__(self, session, broker, schema, codec, prop, stat): |