tag 760078 + patch thanks I'll go with the following patch. The rest of the code manipulates decoded strings so it's necessary to redecode the result of base64 encoding.
-- Etienne Millon
Subject: Fix HTTP auth in Python 3 From: Etienne Millon <m...@emillon.org> Bug-Debian: http://bugs.debian.org/760078 --- a/feedparser/feedparser.py +++ b/feedparser/feedparser.py @@ -2999,7 +2999,7 @@ user_passwd, realhost = urllib.splituser(realhost) if user_passwd: url_file_stream_or_string = '%s://%s%s' % (urltype, realhost, rest) - auth = base64.standard_b64encode(user_passwd).strip() + auth = base64.standard_b64encode(user_passwd.encode('ascii')).strip().decode('ascii') # iri support if isinstance(url_file_stream_or_string, unicode):