py3: add a missing b'' for Windows
authorMatt Harbison <matt_harbison@yahoo.com>
Tue, 18 Sep 2018 22:40:03 -0400
changeset 39706 030d558c6456
parent 39705 fa681452b249
child 39707 5abc47d4ca6b
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
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)