Skip to content

Commit

Permalink
base64: add z85 for py313 (python#11976)
Browse files Browse the repository at this point in the history
  • Loading branch information
hauntsaninja authored May 21, 2024
1 parent eeea0ac commit c7664ee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 0 additions & 3 deletions stdlib/@tests/stubtest_allowlists/py313.txt
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,6 @@ asyncio.tasks.Task.__class_getitem__
asyncio.unix_events.EventLoop
asyncio.unix_events._UnixSelectorEventLoop.create_unix_server
asyncio.unix_events.__all__
base64.__all__
base64.z85decode
base64.z85encode
bdb.Bdb.dispatch_opcode
bdb.Bdb.set_stepinstr
bdb.Bdb.user_opcode
Expand Down
6 changes: 6 additions & 0 deletions stdlib/base64.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ __all__ = [

if sys.version_info >= (3, 10):
__all__ += ["b32hexencode", "b32hexdecode"]
if sys.version_info >= (3, 13):
__all__ += ["z85decode", "z85encode"]

def b64encode(s: ReadableBuffer, altchars: ReadableBuffer | None = None) -> bytes: ...
def b64decode(s: str | ReadableBuffer, altchars: str | ReadableBuffer | None = None, validate: bool = False) -> bytes: ...
Expand Down Expand Up @@ -57,3 +59,7 @@ def decodebytes(s: ReadableBuffer) -> bytes: ...
if sys.version_info < (3, 9):
def encodestring(s: ReadableBuffer) -> bytes: ...
def decodestring(s: ReadableBuffer) -> bytes: ...

if sys.version_info >= (3, 13):
def z85encode(s: ReadableBuffer) -> bytes: ...
def z85decode(s: str | ReadableBuffer) -> bytes: ...

0 comments on commit c7664ee

Please sign in to comment.