From 1cf9e153165e6a54471f1f737f4e29c6a14b3d1b Mon Sep 17 00:00:00 2001 From: Andrew Halberstadt Date: Thu, 3 Oct 2019 08:33:15 +0000 Subject: [PATCH] Bug 1585751 - [lint.wpt] Fix Python 3 error processing 'wpt' output, r=jgraham Differential Revision: https://phabricator.services.mozilla.com/D47975 --- tools/lint/wpt/wpt.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/lint/wpt/wpt.py b/tools/lint/wpt/wpt.py index aa54a39ee7b1..d16bd2fd3096 100644 --- a/tools/lint/wpt/wpt.py +++ b/tools/lint/wpt/wpt.py @@ -37,7 +37,8 @@ def process_line(line): cmd = ['python2', os.path.join(tests_dir, 'wpt'), 'lint', '--json'] + files log.debug("Command: {}".format(' '.join(cmd))) - proc = ProcessHandler(cmd, env=os.environ, processOutputLine=process_line) + proc = ProcessHandler(cmd, env=os.environ, processOutputLine=process_line, + universal_newlines=True) proc.run() try: proc.wait()