summaryrefslogtreecommitdiff
path: root/python/examples/direct/declare_queues.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/examples/direct/declare_queues.py')
-rwxr-xr-xpython/examples/direct/declare_queues.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/python/examples/direct/declare_queues.py b/python/examples/direct/declare_queues.py
index deea0a3ccc..ce19a91a60 100755
--- a/python/examples/direct/declare_queues.py
+++ b/python/examples/direct/declare_queues.py
@@ -26,7 +26,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)
@@ -39,14 +38,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()))