# HG changeset patch # User Matt Harbison # Date 2018-09-19 02:40:03 # Node ID 030d558c6456c435b9c2f50249be0838ec27606d # Parent fa681452b249f5d59dd77c925ce15b027758e8fe py3: add a missing b'' for Windows I tried ./contrib/byteify-strings.py, but there were way too many changes (and most looked wrong). This was hit with test-check-interfaces.py. # skip-blame for b'' prefixes diff --git a/tests/run-tests.py b/tests/run-tests.py --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -1153,7 +1153,7 @@ class Test(unittest.TestCase): killdaemons(env['DAEMON_PIDS']) return ret - output = '' + output = b'' proc.tochild.close() try: @@ -1177,7 +1177,7 @@ class Test(unittest.TestCase): output = re.sub(s, r, output) if normalizenewlines: - output = output.replace('\r\n', '\n') + output = output.replace(b'\r\n', b'\n') return ret, output.splitlines(True)