Author: guido.van.rossum
Date: Wed Aug 29 04:30:49 2007
New Revision: 57638
Modified:
python/branches/py3k/Lib/base64.py
Log:
Forgot one. This makes test_urllib2.py pass.
Modified: python/branches/py3k/Lib/base64.py
==============================================================================
--- python/branches/py3k/Lib/base64.py (original)
+++ python/branches/py3k/Lib/base64.py Wed Aug 29 04:30:49 2007
@@ -50,7 +50,7 @@
The encoded byte string is returned.
"""
if not isinstance(s, bytes):
- s = bytes(s)
+ s = bytes(s, "ascii")
# Strip off the trailing newline
encoded = binascii.b2a_base64(s)[:-1]
if altchars is not None:
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins