Mercurial > hg
view mercurial/cext/bdiff.pyi @ 48488:f8540fe4be0f
procutil: avoid an uninitialized variable usage on tempfile exception
If `pycompat.unnamedtempfile()` raises an exception, it would have called
`stdin.close()` in the `finally` block without it being initialized first.
Differential Revision: https://phab.mercurial-scm.org/D11928
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Tue, 14 Dec 2021 17:29:30 -0500 |
parents | 8dca9051a859 |
children | b8389533ba3a |
line wrap: on
line source
from typing import ( List, Tuple, ) version: int def bdiff(a: bytes, b: bytes): bytes def blocks(a: bytes, b: bytes) -> List[Tuple[int, int, int, int]]: ... def fixws(s: bytes, allws: bool) -> bytes: ... def splitnewlines(text: bytes) -> List[bytes]: ... def xdiffblocks(a: bytes, b: bytes) -> List[Tuple[int, int, int, int]]: ...