summaryrefslogtreecommitdiff
path: root/qpid/python
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2009-10-12 14:34:42 +0000
committerRafael H. Schloming <rhs@apache.org>2009-10-12 14:34:42 +0000
commitdee4bfc330263cd8f60aed63098eebb3f1ca57ca (patch)
treede8689312ba755df72fd87be2eb7f207e61a5fd8 /qpid/python
parenteef12c6a8f8d62747b2dfa933fef7838e656fc59 (diff)
downloadqpid-python-dee4bfc330263cd8f60aed63098eebb3f1ca57ca.tar.gz
renamed ping to spout
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@824361 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python')
-rwxr-xr-xqpid/python/examples/api/spout (renamed from qpid/python/examples/api/ping)6
1 files changed, 3 insertions, 3 deletions
diff --git a/qpid/python/examples/api/ping b/qpid/python/examples/api/spout
index 7d3686e7cf..c78c13524d 100755
--- a/qpid/python/examples/api/ping
+++ b/qpid/python/examples/api/spout
@@ -51,9 +51,9 @@ opts, args = parser.parse_args()
url = URL(opts.broker)
if opts.id is None:
- ping_id = str(uuid4())
+ spout_id = str(uuid4())
else:
- ping_id = opts.id
+ spout_id = opts.id
if args:
addr = args.pop(0)
else:
@@ -87,7 +87,7 @@ start = time.time()
while (opts.count == 0 or count < opts.count) and \
(opts.timeout is None or time.time() - start < opts.timeout):
msg = Message(content, reply_to=opts.reply_to)
- msg.properties["ping-id"] = "%s:%s" % (ping_id, count)
+ msg.properties["spout-id"] = "%s:%s" % (spout_id, count)
for p in opts.properties:
name, val = nameval(p)
msg.properties[name] = val