changeset 48363 | 6a454e7053a1 |
parent 48284 | 9de0823705b4 |
child 48875 | 6000f5b25c9b |
--- a/mercurial/error.py Fri Nov 26 17:22:14 2021 +0100 +++ b/mercurial/error.py Fri Nov 19 12:57:53 2021 -0800 @@ -388,6 +388,14 @@ __bytes__ = _tobytes +class PatchParseError(PatchError): + __bytes__ = _tobytes + + +class PatchApplicationError(PatchError): + __bytes__ = _tobytes + + def getsimilar(symbols, value): # type: (Iterable[bytes], bytes) -> List[bytes] sim = lambda x: difflib.SequenceMatcher(None, value, x).ratio()