# HG changeset patch # User Raphaël Gomès # Date 1634718399 -7200 # Node ID 6fb282ce9113a7d11ec2325108e39044ba7f6213 # Parent 2ec5fbe266591d0c6ec977424b4260e39f4e3ff1 fsmonitor: fix traceback about bytes and str incompatibility This didn't work anymore in Python 3, switching to a `repr` based reporting does Differential Revision: https://phab.mercurial-scm.org/D11708 diff -r 2ec5fbe26659 -r 6fb282ce9113 hgext/fsmonitor/__init__.py --- a/hgext/fsmonitor/__init__.py Wed Oct 27 15:18:52 2021 +0200 +++ b/hgext/fsmonitor/__init__.py Wed Oct 20 10:26:39 2021 +0200 @@ -560,8 +560,8 @@ for i, (s1, s2) in enumerate(zip(l1, l2)): if set(s1) != set(s2): f.write(b'sets at position %d are unequal\n' % i) - f.write(b'watchman returned: %s\n' % s1) - f.write(b'stat returned: %s\n' % s2) + f.write(b'watchman returned: %r\n' % s1) + f.write(b'stat returned: %r\n' % s2) finally: f.close()