Bug 1436792 - [py-compat] Fix issue opening the temporary manifest on Windows, r=jmaher

MozReview-Commit-ID: FmA1K8osuqe

--HG--
extra : rebase_source : ee557c78b1c959caa10a7862fbc732b4cf11792e
This commit is contained in:
Andrew Halberstadt 2018-02-08 14:26:27 -05:00
parent 4c232ca311
commit 1805dcb2d3

View File

@ -6,9 +6,9 @@ from __future__ import absolute_import, print_function
import json
import os
import tempfile
from distutils.spawn import find_executable
import mozfile
import mozpack.path as mozpath
from mozpack.files import FileFinder
from mozprocess import ProcessHandlerMixin
@ -71,7 +71,7 @@ def run_linter(python, paths, config, **lintargs):
finder = FileFinder(path, ignore=ignore)
files.extend([os.path.join(path, p) for p, f in finder.find(pattern)])
with tempfile.NamedTemporaryFile(mode='w') as fh:
with mozfile.NamedTemporaryFile(mode='w') as fh:
fh.write('\n'.join(files))
fh.flush()