зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1638977 - Convert 'mach prettier-format' to run with Python 3, r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D93350
This commit is contained in:
Родитель
d3b31d1286
Коммит
8c1171c7f8
1
mach
1
mach
|
@ -21,7 +21,6 @@ py2commands="
|
|||
marionette-test
|
||||
jstests
|
||||
mozharness
|
||||
prettier-format
|
||||
raptor
|
||||
raptor-test
|
||||
telemetry-tests-client
|
||||
|
|
|
@ -2060,7 +2060,7 @@ class StaticAnalysis(MachCommandBase):
|
|||
args = [binary, prettier, "--stdin-filepath", assume_filename]
|
||||
|
||||
process = subprocess.Popen(args, stdin=subprocess.PIPE)
|
||||
with open(path, "r") as fin:
|
||||
with open(path, "rb") as fin:
|
||||
process.stdin.write(fin.read())
|
||||
process.stdin.close()
|
||||
process.wait()
|
||||
|
|
Загрузка…
Ссылка в новой задаче