summaryrefslogtreecommitdiff
path: root/python/examples/reservations/common.py
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2010-04-09 15:14:27 +0000
committerRafael H. Schloming <rhs@apache.org>2010-04-09 15:14:27 +0000
commit178f17b6a82df278116c026c7f67443cb92b52c2 (patch)
treedf45ccb15b8fe4212bbdf809aeb507f691d9f9c3 /python/examples/reservations/common.py
parentef958e7b221d38ec76c392f76a66978211d6d1f9 (diff)
downloadqpid-python-178f17b6a82df278116c026c7f67443cb92b52c2.tar.gz
updated reservations example to match latest changes
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@932454 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/examples/reservations/common.py')
-rw-r--r--python/examples/reservations/common.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/examples/reservations/common.py b/python/examples/reservations/common.py
index 24e64beda4..12f07e1c92 100644
--- a/python/examples/reservations/common.py
+++ b/python/examples/reservations/common.py
@@ -52,13 +52,13 @@ class Dispatcher:
count = len(replies)
sequence = 1
- for r in replies:
+ for to, r in replies:
r.correlation_id = msg.correlation_id
r.properties["count"] = count
r.properties["sequence"] = sequence
sequence += 1
try:
- snd = session.sender(r.to)
+ snd = session.sender(to)
snd.send(r)
except SendError, e:
print e