Kaydet (Commit) 5626eec0 authored tarafından Senthil Kumaran's avatar Senthil Kumaran

Sending the auth info as string. Fix BytesWarning: str() on a bytes instance Exception on buildbot.

üst 23df483c
......@@ -1591,13 +1591,13 @@ class URLopener:
if proxy_passwd:
import base64
proxy_auth = base64.b64encode(proxy_passwd.encode()).strip()
proxy_auth = base64.b64encode(proxy_passwd.encode()).decode('ascii')
else:
proxy_auth = None
if user_passwd:
import base64
auth = base64.b64encode(user_passwd.encode()).strip()
auth = base64.b64encode(user_passwd.encode()).decode('ascii')
else:
auth = None
http_conn = connection_factory(host)
......
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