# HG changeset patch # User Raphaël Gomès # Date 1574094884 -3600 # Node ID 794426e969702181f1cb8a58cfff9b0251b1b053 # Parent fa246ada356bdf62f071d3f2f2eb36929a51a84a py3: pass bytes to `configint` and `configbool` Both functions require bytes, even in Python 3. Differential Revision: https://phab.mercurial-scm.org/D7453 diff -r fa246ada356b -r 794426e96970 mercurial/dirstate.py --- a/mercurial/dirstate.py Fri Nov 15 10:16:27 2019 -0800 +++ b/mercurial/dirstate.py Mon Nov 18 17:34:44 2019 +0100 @@ -1112,13 +1112,13 @@ # Force Rayon (Rust parallelism library) to respect the number of # workers. This is a temporary workaround until Rust code knows # how to read the config file. - numcpus = self._ui.configint("worker", "numcpus") + numcpus = self._ui.configint(b"worker", b"numcpus") if numcpus is not None: encoding.environ.setdefault( b'RAYON_NUM_THREADS', b'%d' % numcpus ) - workers_enabled = self._ui.configbool("worker", "enabled", True) + workers_enabled = self._ui.configbool(b"worker", b"enabled", True) if not workers_enabled: encoding.environ[b"RAYON_NUM_THREADS"] = b"1"