Mercurial > hg
view mercurial/cext/base85.pyi @ 51388:cb5175edd225 stable
cext: fix potential memory leaks of list items appended with PyList_Append
Also reduce the duplication in the tricky code that uses PyList_Append by
extracting it into a function `pylist_append_owned`.
author | Arseniy Alekseyev <aalekseyev@janestreet.com> |
---|---|
date | Thu, 15 Feb 2024 15:21:43 +0000 |
parents | 8dca9051a859 |
children |
line wrap: on
line source
from typing import Optional version: int def b85encode(text: bytes, pad: Optional[int]) -> bytes: ... def b85decode(text: bytes) -> bytes: ...