Skip to content

Commit 5156e8f

Browse files
[3.15] gh-77328: Update base64 module RFC references to RFC 4648 (GH-151275) (#151438)
(cherry picked from commit e933987) Co-authored-by: Stan Ulbrych <stan@python.org>
1 parent 5d7cf16 commit 5156e8f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Lib/base64.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Base16, Base32, Base64 (RFC 3548), Base85 and Ascii85 data encodings"""
1+
"""Base16, Base32, Base64 (RFC 4648), Base85 and Ascii85 data encodings"""
22

33
# Modified 04-Oct-1995 by Jack Jansen to use binascii module
44
# Modified 30-Dec-2003 by Barry Warsaw to add full RFC 3548 support
@@ -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,7 +266,7 @@ 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
269+
# RFC 4648, Base 16 Alphabet specifies uppercase, but hexlify() returns
270270
# lowercase. The RFC also recommends against accepting input case
271271
# insensitively.
272272
def b16encode(s, *, wrapcol=0):

0 commit comments

Comments
 (0)