From 66576cdc558e8d5cbb95ed70e851005b4273a0ae Mon Sep 17 00:00:00 2001 From: Ted Ross Date: Fri, 4 Dec 2009 18:59:29 +0000 Subject: QPID-2246 - QMF - Querying objects using a selector of type ObjectId yields incorrect results git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@887320 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/bindings/qmf/python/qmf.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'cpp/bindings/qmf/python') diff --git a/cpp/bindings/qmf/python/qmf.py b/cpp/bindings/qmf/python/qmf.py index e97279a8fa..233f1c83d8 100644 --- a/cpp/bindings/qmf/python/qmf.py +++ b/cpp/bindings/qmf/python/qmf.py @@ -35,7 +35,6 @@ from qmfengine import (TYPE_ABSTIME, TYPE_ARRAY, TYPE_BOOL, TYPE_DELTATIME, from qmfengine import (O_EQ, O_NE, O_LT, O_LE, O_GT, O_GE, O_RE_MATCH, O_RE_NOMATCH, E_NOT, E_AND, E_OR, E_XOR) - ##============================================================================== ## CONNECTION ##============================================================================== @@ -561,9 +560,7 @@ class ObjectId: def __eq__(self, other): if not isinstance(other, self.__class__): return False - return (self.impl.getObjectNumHi() == other.impl.getObjectNumHi() and - self.impl.getObjectNumLo() == other.impl.getObjectNumLo()) - + return self.impl == other.impl def __ne__(self, other): return not self.__eq__(other) -- cgit v1.2.1