diff options
| author | Rafael H. Schloming <rhs@apache.org> | 2010-04-09 15:14:27 +0000 |
|---|---|---|
| committer | Rafael H. Schloming <rhs@apache.org> | 2010-04-09 15:14:27 +0000 |
| commit | 178f17b6a82df278116c026c7f67443cb92b52c2 (patch) | |
| tree | df45ccb15b8fe4212bbdf809aeb507f691d9f9c3 /python/examples/reservations/reserve | |
| parent | ef958e7b221d38ec76c392f76a66978211d6d1f9 (diff) | |
| download | qpid-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/reserve')
| -rwxr-xr-x | python/examples/reservations/reserve | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/python/examples/reservations/reserve b/python/examples/reservations/reserve index cabc103c77..68e7fee912 100755 --- a/python/examples/reservations/reserve +++ b/python/examples/reservations/reserve @@ -21,7 +21,6 @@ import optparse, os, sys, time from uuid import uuid4 from qpid.messaging import * -from qpid.util import URL from qpid.log import enable, DEBUG, WARN from common import * @@ -58,9 +57,7 @@ if args: else: patterns = ["*"] -url = URL(opts.broker) -conn = Connection.open(url.host, url.port or AMQP_PORT, - username=url.user, password=url.password) +conn = Connection.establish(opts.broker) if opts.release: request_type = "release" |
