qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rob...@apache.org
Subject svn commit: r1159248 - /qpid/trunk/qpid/python/qpid/util.py
Date Thu, 18 Aug 2011 14:41:41 GMT
Author: robbie
Date: Thu Aug 18 14:41:41 2011
New Revision: 1159248

URL: http://svn.apache.org/viewvc?rev=1159248&view=rev
Log:
QPID-3407: restore python 2.4 compatibility to allow building CPP tree on RHEL 5.3

Modified:
    qpid/trunk/qpid/python/qpid/util.py

Modified: qpid/trunk/qpid/python/qpid/util.py
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/python/qpid/util.py?rev=1159248&r1=1159247&r2=1159248&view=diff
==============================================================================
--- qpid/trunk/qpid/python/qpid/util.py (original)
+++ qpid/trunk/qpid/python/qpid/util.py Thu Aug 18 14:41:41 2011
@@ -151,7 +151,10 @@ class URL:
       if self.password:
         s += "/%s" % self.password
       s += "@"
-    s += self.host if ':' not in self.host else "[%s]" % self.host
+    if ':' not in self.host:
+      s += self.host
+    else:
+      s += "[%s]" % self.host
     if self.port:
       s += ":%s" % self.port
     return s



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org


Mime
View raw message