# HG changeset patch # User Matt Harbison # Date 1537324803 14400 # 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 -r fa681452b249 -r 030d558c6456 tests/run-tests.py --- a/tests/run-tests.py Mon Sep 03 21:01:47 2018 +0900 +++ b/tests/run-tests.py Tue Sep 18 22:40:03 2018 -0400 @@ -1153,7 +1153,7 @@ killdaemons(env['DAEMON_PIDS']) return ret - output = '' + output = b'' proc.tochild.close() try: @@ -1177,7 +1177,7 @@ 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)