summaryrefslogtreecommitdiff
path: root/python/qpid/messaging.py
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2009-06-02 15:38:05 +0000
committerRafael H. Schloming <rhs@apache.org>2009-06-02 15:38:05 +0000
commitb7fafca024a93f1bda424bcd70b2d67adc7f59f3 (patch)
treeeedb0407f6946d1130d7b3e40556dd6fa996d922 /python/qpid/messaging.py
parentd23f978f487ca50c23d520c5f2574a6eb618b1fc (diff)
downloadqpid-python-b7fafca024a93f1bda424bcd70b2d67adc7f59f3.tar.gz
removed another turnary if
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@781068 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/qpid/messaging.py')
-rw-r--r--python/qpid/messaging.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/python/qpid/messaging.py b/python/qpid/messaging.py
index 7b06ebcd03..17c955393d 100644
--- a/python/qpid/messaging.py
+++ b/python/qpid/messaging.py
@@ -632,7 +632,10 @@ class Receiver(Lockable):
else:
self._queue = "%s.%s" % (self.session.name, self.destination)
self._ssn.queue_declare(queue=self._queue, durable=False, exclusive=True, auto_delete=True)
- f = FILTER_DEFAULTS[result.type] if self.filter is None else self.filter
+ if self.filter is None:
+ f = FILTER_DEFAULTS[result.type]
+ else:
+ f = self.filter
f._bind(self._ssn, self.source, self._queue)
self._ssn.message_subscribe(queue=self._queue, destination=self.destination,
sync=True)