31def convert(fmt, name, src_path, dst_path):
32 header, line_begin, line_end, footer = fmt
33 assert os.path.exists(src_path)
35 with open(dst_path, 'w') as o:
36 o.write(header.format(name))
37 while True:
38 line =
','.
join(
'%d' % v
for _, v
in zip(range(8), src))
39 if not line:
40 break
41 o.write('%s%s%s\n' % (line_begin, line, line_end))
42 o.write(footer.format(name))
43
44
static Editor::Movement convert(skui::Key key)
def iterate_as_uint32(path)
static SkString join(const CommandLineFlags::StringArray &)