summaryrefslogtreecommitdiff
path: root/qpid/python
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
commitf7d647fabb0cb0b6698d7a683cbbac4921011834 (patch)
treeefa661680cf00d31b32f0e50539ed47a489f61ce /qpid/python
parent139277d7161c8c72944bbde168fff5c4deb27686 (diff)
downloadqpid-python-f7d647fabb0cb0b6698d7a683cbbac4921011834.tar.gz
removed another turnary if
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@781068 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python')
-rw-r--r--qpid/python/qpid/messaging.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/qpid/python/qpid/messaging.py b/qpid/python/qpid/messaging.py
index 7b06ebcd03..17c955393d 100644
--- a/qpid/python/qpid/messaging.py
+++ b/qpid/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)