summaryrefslogtreecommitdiff
path: root/qpid/python/examples/api/server
diff options
context:
space:
mode:
Diffstat (limited to 'qpid/python/examples/api/server')
-rwxr-xr-xqpid/python/examples/api/server2
1 files changed, 1 insertions, 1 deletions
diff --git a/qpid/python/examples/api/server b/qpid/python/examples/api/server
index d7cd53de4b..f0bf1c2a4b 100755
--- a/qpid/python/examples/api/server
+++ b/qpid/python/examples/api/server
@@ -51,7 +51,7 @@ else:
parser.error("address is required")
# XXX: should make URL default the port for us
-conn = Connection(url.host, url.port or AMQP_PORT,
+conn = Connection(url.host, url.port,
username=url.user,
password=url.password,
reconnect=opts.reconnect,