Mercurial > hg
view mercurial/cext/mpatch.pyi @ 48941:fd5b8e696b75
py3: stop using util.iterfile()
The Python 3 implementation is a no-op. So this is equivalent.
We still keep util.iterfile() around for backwards API compatibility to
help the Python 3 migration. It can be deleted in a future release.
Differential Revision: https://phab.mercurial-scm.org/D12347
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Mon, 21 Feb 2022 12:42:48 -0700 |
parents | 8dca9051a859 |
children |
line wrap: on
line source
from typing import ( List, ) version: int class mpatchError(Exception): ... def patches(text: bytes, bins: List[bytes]) -> bytes: ... def patchedsize(orig: int, data: bytes) -> int: ...