mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Forgot one. This makes test_urllib2.py pass.
This commit is contained in:
parent
022c474679
commit
083e20c8e1
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ def b64encode(s, altchars=None):
|
|||
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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue