# HG changeset patch # User Gregory Szorc # Date 1645388490 25200 # Node ID 4cea98b32d950c56c80b604881b60e5b7d826c0f # Parent f928dec9add7c20abddda67775db2c704c3a8f81 tests: unconditionalize bchr We could probably just do bytes([x]) everywhere. But this eliminates use of PYTHON3. Differential Revision: https://phab.mercurial-scm.org/D12238 diff -r f928dec9add7 -r 4cea98b32d95 tests/run-tests.py --- a/tests/run-tests.py Sun Feb 20 13:20:33 2022 -0700 +++ b/tests/run-tests.py Sun Feb 20 13:21:30 2022 -0700 @@ -1655,9 +1655,7 @@ re.compile(br'.*\$LOCALIP.*$'), ] -bchr = chr -if PYTHON3: - bchr = lambda x: bytes([x]) +bchr = lambda x: bytes([x]) WARN_UNDEFINED = 1 WARN_YES = 2