Commits

Anonymous committed 04709a5

[svn r6371] Fix #5636. urlparse added attributes to the result in python 2.5, so using
those breaks installations using 2.4. Therefore changed to use indexes instead.

  • Participants
  • Parent commits 475530d

Comments (0)

Files changed (1)

0.10/HudsonTrac/HudsonTracPlugin.py

 
     def __init__(self):
         url_parts = urlparse.urlsplit(self.feed_url)
-        base_url  = url_parts.scheme + '://' + url_parts.netloc + '/'
+        base_url  = url_parts[0] + '://' + url_parts[1] + '/'
 
         pwdMgr = urllib2.HTTPPasswordMgrWithDefaultRealm()
         pwdMgr.add_password(None, base_url, self.username, self.password)