Mercurial > hg
diff hgext/fsmonitor/__init__.py @ 43403:90fba2248693 stable
fsmonitor: use stringutil.forcebytestr() instead of str() on an exception
Similar to 5fa8ac91190e / D7206, should get test-install.t passing on py3.
Differential Revision: https://phab.mercurial-scm.org/D7218
author | Ian Moody <moz-ian@perix.co.uk> |
---|---|
date | Mon, 04 Nov 2019 19:05:44 +0000 |
parents | 09ab61c0ab4b |
children | 2d49482d0dd4 |
line wrap: on
line diff
--- a/hgext/fsmonitor/__init__.py Mon Nov 04 16:13:01 2019 +0100 +++ b/hgext/fsmonitor/__init__.py Mon Nov 04 19:05:44 2019 +0000 @@ -193,7 +193,7 @@ pycompat.bytestr(v["version"]), ) except watchmanclient.Unavailable as e: - err = str(e) + err = stringutil.forcebytestr(e) fm.condwrite( err, b"fsmonitor-watchman-error",