diff options
Diffstat (limited to 'python/examples/request-response/server.py')
-rwxr-xr-x | python/examples/request-response/server.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/python/examples/request-response/server.py b/python/examples/request-response/server.py index 7b182723b9..dbe4b88208 100755 --- a/python/examples/request-response/server.py +++ b/python/examples/request-response/server.py @@ -37,7 +37,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) @@ -50,13 +49,8 @@ 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" - 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())) |