summaryrefslogtreecommitdiff
path: root/python/examples/request-response/client.py
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2008-05-15 21:34:10 +0000
committerAlan Conway <aconway@apache.org>2008-05-15 21:34:10 +0000
commit66528d5ed7916352bd2ebbddd413874773020c6a (patch)
tree1e57b63a850b2320263da2843aeaa10ab1cf959e /python/examples/request-response/client.py
parentc8e16b308fe2243399c85fc4d8178eab5f421580 (diff)
downloadqpid-python-66528d5ed7916352bd2ebbddd413874773020c6a.tar.gz
- Enable python tets and examples in make rpmbuild.
- Remove hard-coded amqp.xml paths from python examples. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@656853 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/examples/request-response/client.py')
-rwxr-xr-xpython/examples/request-response/client.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/python/examples/request-response/client.py b/python/examples/request-response/client.py
index 8ab1149901..7bb4ee3462 100755
--- a/python/examples/request-response/client.py
+++ b/python/examples/request-response/client.py
@@ -45,7 +45,6 @@ host="127.0.0.1"
port=5672
user="guest"
password="guest"
-amqp_spec="/usr/share/amqp/amqp.0-10.xml"
# If an alternate host or port has been specified, use that instead
# (this is used in our unit tests)
@@ -58,14 +57,9 @@ if len(sys.argv) > 1 :
if len(sys.argv) > 2 :
port=int(sys.argv[2])
-try:
- amqp_spec = os.environ["AMQP_SPEC"]
-except KeyError:
- amqp_spec="/usr/share/amqp/amqp.0-10.xml"
-
# Create a connection.
socket = connect(host, port)
-connection = Connection (sock=socket, spec=qpid.spec.load(amqp_spec))
+connection = Connection (sock=socket)
connection.start()
session = connection.session(str(uuid4()))