Skip to content

Commit 0c5283e

Browse files
Also update two other references
1 parent 778fb84 commit 0c5283e

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

Lib/base64.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ def urlsafe_b64decode(s, *, padded=False):
219219
characters present in the input.
220220
'''
221221
_B32_DECODE_MAP01_DOCSTRING = '''
222-
RFC 3548 allows for optional mapping of the digit 0 (zero) to the
222+
RFC 4648 allows for optional mapping of the digit 0 (zero) to the
223223
letter O (oh), and for optional mapping of the digit 1 (one) to
224224
either the letter I (eye) or letter L (el). The optional argument
225225
map01 when not None, specifies which letter the digit 1 should be
@@ -266,9 +266,8 @@ def b32hexdecode(s, casefold=False, *, padded=True, ignorechars=b'',
266266
extra_args='')
267267

268268

269-
# RFC 3548, Base 16 Alphabet specifies uppercase, but hexlify() returns
270-
# lowercase. The RFC also recommends against accepting input case
271-
# insensitively.
269+
# RFC 4648, Base 16 Alphabet specifies uppercase, but hexlify() returns
270+
# lowercase.
272271
def b16encode(s, *, wrapcol=0):
273272
"""Encode the bytes-like object s using Base16 and return a bytes object.
274273

0 commit comments

Comments
 (0)