You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by tr...@apache.org on 2008/10/27 03:52:58 UTC
svn commit: r708075 - /incubator/qpid/trunk/qpid/python/qpid/qmfconsole.py
Author: tross
Date: Sun Oct 26 19:52:58 2008
New Revision: 708075
URL: http://svn.apache.org/viewvc?rev=708075&view=rev
Log:
Put Url.match back in. It isn't unused.
Modified:
incubator/qpid/trunk/qpid/python/qpid/qmfconsole.py
Modified: incubator/qpid/trunk/qpid/python/qpid/qmfconsole.py
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/python/qpid/qmfconsole.py?rev=708075&r1=708074&r2=708075&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/python/qpid/qmfconsole.py (original)
+++ incubator/qpid/trunk/qpid/python/qpid/qmfconsole.py Sun Oct 26 19:52:58 2008
@@ -106,6 +106,9 @@
def name(self):
return self.host + ":" + str(self.port)
+ def match(self, host, port):
+ return socket.gethostbyname(self.host) == socket.gethostbyname(host) and self.port == port
+
class Session:
"""
An instance of the Session class represents a console session running