mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-15 06:15:43 +00:00
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:
parent
4c232ca311
commit
1805dcb2d3
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user