diff options
author | Rafael H. Schloming <rhs@apache.org> | 2009-06-02 15:31:32 +0000 |
---|---|---|
committer | Rafael H. Schloming <rhs@apache.org> | 2009-06-02 15:31:32 +0000 |
commit | 03aa40a3c1df18094efc7b7c0ea0b2e6c7c45aaf (patch) | |
tree | fc9019971ad99c38a252585f1e3aeb7ca4dc9b1e /python/qpid/messaging.py | |
parent | 45aa23ecffd6bd6bbfcc41706c9901cb79062ad4 (diff) | |
download | qpid-python-03aa40a3c1df18094efc7b7c0ea0b2e6c7c45aaf.tar.gz |
removed another turnary if
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@781061 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/qpid/messaging.py')
-rw-r--r-- | python/qpid/messaging.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/python/qpid/messaging.py b/python/qpid/messaging.py index 43dc3360f7..e7272873c8 100644 --- a/python/qpid/messaging.py +++ b/python/qpid/messaging.py @@ -551,7 +551,10 @@ class Sender(Lockable): else: message = Message(object) # XXX: what if subject is specified for a normal queue? - rk = message.subject if self._routing_key is None else self._routing_key + if self._routing_key is None: + rk = message.subject + else: + rk = self._routing_key # XXX: do we need to query to figure out how to create the reply-to interoperably? rt = self._ssn.reply_to(*parse_addr(message.reply_to)) if message.reply_to else None dp = self._ssn.delivery_properties(routing_key=rk) |