changeset 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 40bf3d7ecc42
children a69772d2f3c3
files hgext/fsmonitor/__init__.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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",