Commit d2346fd2 by Toshio Kuratomi

Python2.4 compat fix

parent 12e3a2a0
......@@ -652,7 +652,7 @@ def open_url(url, data=None, headers=None, method=None, use_proxy=True,
if headers is None:
headers = {}
headers["Authorization"] = "Basic {0}".format(base64.b64encode("{0}:{1}".format(username, password)))
headers["Authorization"] = "Basic %s" % base64.b64encode("%s:%s" % (username, password))
if not use_proxy:
proxyhandler = urllib2.ProxyHandler({})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment