diff options
| author | Rafael H. Schloming <rhs@apache.org> | 2009-03-25 18:22:55 +0000 |
|---|---|---|
| committer | Rafael H. Schloming <rhs@apache.org> | 2009-03-25 18:22:55 +0000 |
| commit | 2d716942ffd99eb04a723ceb43709305a2eb2244 (patch) | |
| tree | 3ccf86d88435ac29a06a1ea2d48469535bf7768e /python/perftest | |
| parent | d84587631a8c6c95bc80bc7ce28dae69e07e6376 (diff) | |
| download | qpid-python-2d716942ffd99eb04a723ceb43709305a2eb2244.tar.gz | |
use longs for large hex constant literals, this avoids scary looking warnings on earlier versions of python
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@758389 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/perftest')
| -rwxr-xr-x | python/perftest | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/python/perftest b/python/perftest index f4d3c95e96..f867566fd0 100755 --- a/python/perftest +++ b/python/perftest @@ -44,8 +44,8 @@ def publisher(n): consumer = "consumer" queue = client.queue(consumer) channel.message_subscribe(queue="sync_queue", destination=consumer) - channel.message_flow(consumer, 0, 0xFFFFFFFF) - channel.message_flow(consumer, 1, 0xFFFFFFFF) + channel.message_flow(consumer, 0, 0xFFFFFFFFL) + channel.message_flow(consumer, 1, 0xFFFFFFFFL) queue.get(block = True) print "done" channel.session_close() @@ -62,8 +62,8 @@ def consumer(): consumer = "consumer" queue = client.queue(consumer) channel.message_subscribe(queue="message_queue", destination=consumer) - channel.message_flow(consumer, 0, 0xFFFFFFFF) - channel.message_flow(consumer, 1, 0xFFFFFFFF) + channel.message_flow(consumer, 0, 0xFFFFFFFFL) + channel.message_flow(consumer, 1, 0xFFFFFFFFL) final = "That's done" content = "" message = None |
