Mercurial > hg
comparison mercurial/verify.py @ 43398:9a8f8c6ed965 stable
fsmonitor: normalize exception types to bytes
Unavailable.msg should now always be bytes.
We also rename Unavailable.__str__ to __bytes__ as it always
returns bytes. We make __str__ a simple wrapper that decodes that
result to str.
There's probably some excessive strutil.forcebytestr() in
fsmonitor/__init__.py now. But at least the exceptions around
type coercion should now be gone.
Differential Revision: https://phab.mercurial-scm.org/D7214
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sat, 02 Nov 2019 15:02:35 -0700 |
parents | d783f945a701 |
children | a447efd991b9 |
comparison
equal
deleted
inserted
replaced
43397:09ab61c0ab4b | 43398:9a8f8c6ed965 |
---|