summaryrefslogtreecommitdiff
path: root/python/qpid
diff options
context:
space:
mode:
authorTed Ross <tross@apache.org>2008-12-03 18:43:16 +0000
committerTed Ross <tross@apache.org>2008-12-03 18:43:16 +0000
commitba8e5b1129ebb83a601574f349db9701b1511809 (patch)
tree3ed738d603a5c3ac246cdb2b434763d5375e0994 /python/qpid
parent46cd611c333e71ef4297b47bfa67ed09343191b1 (diff)
downloadqpid-python-ba8e5b1129ebb83a601574f349db9701b1511809.tar.gz
QPID-1512 - Catch only connection-related exceptions in qmf console
connection thread - Added __hash__ method for UUID in qpid.datatypes git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@723008 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/qpid')
-rw-r--r--python/qpid/datatypes.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/python/qpid/datatypes.py b/python/qpid/datatypes.py
index 38fc163dd9..eb1f86b0b0 100644
--- a/python/qpid/datatypes.py
+++ b/python/qpid/datatypes.py
@@ -297,6 +297,9 @@ class UUID:
def __repr__(self):
return "UUID(%r)" % str(self)
+ def __hash__(self):
+ return self.bytes.__hash__()
+
class timestamp(float):
def __new__(cls, obj=None):