Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
Bug 1585751 - [lint.wpt] Fix Python 3 error processing 'wpt' output, …
Browse files Browse the repository at this point in the history
…r=jgraham

Differential Revision: https://phabricator.services.mozilla.com/D47975
  • Loading branch information
ahal committed Oct 3, 2019
1 parent bff8d01 commit 1cf9e15
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/lint/wpt/wpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 1cf9e15

Please sign in to comment.