From ce885634a01ba664d13e3944f4be62957d258501 Mon Sep 17 00:00:00 2001 From: "Stephen D. Huston" Date: Tue, 24 Feb 2009 16:26:47 +0000 Subject: 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 --- python/qmf/console.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'python/qmf/console.py') 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) -- cgit v1.2.1