Bug 850380 - Ensure .xpt files are written in binary mode (windows bustage)

This commit is contained in:
Gregory Szorc 2013-08-14 10:13:55 -07:00
Родитель 6a7879204c
Коммит ea32554eae
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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: