From ba8e5b1129ebb83a601574f349db9701b1511809 Mon Sep 17 00:00:00 2001 From: Ted Ross Date: Wed, 3 Dec 2008 18:43:16 +0000 Subject: 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 --- python/qpid/datatypes.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'python/qpid') 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): -- cgit v1.2.1