diff options
author | Stephen D. Huston <shuston@apache.org> | 2009-02-24 16:26:47 +0000 |
---|---|---|
committer | Stephen D. Huston <shuston@apache.org> | 2009-02-24 16:26:47 +0000 |
commit | ce885634a01ba664d13e3944f4be62957d258501 (patch) | |
tree | 15c776bbba4fb336937f103d5b81c466ed5ba379 /python/qmf/console.py | |
parent | 2d1974bde67e61a4c6581dc80e067c701d995264 (diff) | |
download | qpid-python-ce885634a01ba664d13e3944f4be62957d258501.tar.gz |
Replace os.uname with platform.uname to enable this to work on Windows
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@747417 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/qmf/console.py')
-rw-r--r-- | python/qmf/console.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/python/qmf/console.py b/python/qmf/console.py index abc0929955..39ef157f82 100644 --- a/python/qmf/console.py +++ b/python/qmf/console.py @@ -20,6 +20,7 @@ """ Console API for Qpid Management Framework """ import os +import platform import qpid import struct import socket @@ -1243,7 +1244,7 @@ class Broker: self.error = None self.brokerId = None self.connected = False - self.amqpSessionId = "%s.%d.%d" % (os.uname()[1], os.getpid(), Broker.nextSeq) + self.amqpSessionId = "%s.%d.%d" % (platform.uname()[1], os.getpid(), Broker.nextSeq) Broker.nextSeq += 1 if self.session.manageConnections: self.thread = ManagedConnection(self) |