зеркало из https://github.com/mozilla/gecko-dev.git
Bug 850380 - Ensure .xpt files are written in binary mode (windows bustage)
This commit is contained in:
Родитель
6a7879204c
Коммит
ea32554eae
|
@ -57,9 +57,9 @@ def process(input_dir, cache_dir, header_dir, xpt_dir, deps_dir, module, stems):
|
|||
with FileAvoidWrite(header_path) as fh:
|
||||
print_header(idl, fh, path)
|
||||
|
||||
# TODO use FileAvoidWrite once it supports binary mode.
|
||||
xpt_path = os.path.join(xpt_dir, '%s.xpt' % module)
|
||||
with FileAvoidWrite(xpt_path) as fh:
|
||||
xpt_link(xpts.values()).writefd(fh)
|
||||
xpt_link(xpts.values()).write(xpt_path)
|
||||
|
||||
deps_path = os.path.join(deps_dir, '%s.pp' % module)
|
||||
with FileAvoidWrite(deps_path) as fh:
|
||||
|
|
Загрузка…
Ссылка в новой задаче