Avoid compiler warning due to stray \x00
This commit is contained in:
parent
a49323537b
commit
a938c74751
|
@ -22,9 +22,9 @@ def main(input_path, output_path):
|
||||||
line.append('%d,' % c)
|
line.append('%d,' % c)
|
||||||
lines.append(''.join(line))
|
lines.append(''.join(line))
|
||||||
lines.append('};\n')
|
lines.append('};\n')
|
||||||
with open(output_path, 'w') as output_file:
|
with open(output_path, 'w', encoding='utf-8') as output_file:
|
||||||
output_file.write('\n'.join(lines))
|
output_file.write('\n'.join(lines))
|
||||||
output_file.write('\u0000')
|
output_file.write('/* Mercurial binary marker: \x00 */')
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
|
@ -3107,4 +3107,4 @@ unsigned char _Py_M__importlib[] = {
|
||||||
13,12,9,12,15,12,17,15,2,6,2,12,41,18,25,12,
|
13,12,9,12,15,12,17,15,2,6,2,12,41,18,25,12,
|
||||||
23,12,15,24,34,12,45,
|
23,12,15,24,34,12,45,
|
||||||
};
|
};
|
||||||
|