Skip to content

Commit 7e6dcb6

Browse files
Apply suggestions from code review
Co-authored-by: Gregory P. Smith <68491+gpshead@users.noreply.github.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
1 parent c88fb7a commit 7e6dcb6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Lib/base64.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,6 @@ def b16encode(s, *, wrapcol=0):
265265
wrapcol = 2
266266
return binascii.hexlify(s, bytes_per_sep=-(wrapcol//2), sep=b'\n').upper()
267267

268-
_upper_hex_trans = bytes.maketrans(b'abcdef', b'ABCDEF')
269268

270269
def b16decode(s, casefold=False, *, ignorechars=b''):
271270
"""Decode the Base16 encoded bytes-like object or ASCII string s.
@@ -342,7 +341,7 @@ def b85encode(b, pad=False, *, wrapcol=0):
342341
"""
343342
return binascii.b2a_base85(b, wrapcol=wrapcol, pad=pad)
344343

345-
def b85decode(b, ignorechars=b''):
344+
def b85decode(b, *, ignorechars=b''):
346345
"""Decode the base85-encoded bytes-like object or ASCII string b
347346
348347
The result is returned as a bytes object.
@@ -361,7 +360,7 @@ def z85encode(s, pad=False, *, wrapcol=0):
361360
return binascii.b2a_base85(s, wrapcol=wrapcol, pad=pad,
362361
alphabet=binascii.Z85_ALPHABET)
363362

364-
def z85decode(s, ignorechars=b''):
363+
def z85decode(s, *, ignorechars=b''):
365364
"""Decode the z85-encoded bytes-like object or ASCII string b
366365
367366
The result is returned as a bytes object.

0 commit comments

Comments
 (0)