Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a938c74

Browse files
committed
Avoid compiler warning due to stray \x00
1 parent a493235 commit a938c74

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Python/freeze_importlib.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ def main(input_path, output_path):
2222
line.append('%d,' % c)
2323
lines.append(''.join(line))
2424
lines.append('};\n')
25-
with open(output_path, 'w') as output_file:
25+
with open(output_path, 'w', encoding='utf-8') as output_file:
2626
output_file.write('\n'.join(lines))
27-
output_file.write('\u0000')
27+
output_file.write('/* Mercurial binary marker: \x00 */')
2828

2929

3030
if __name__ == '__main__':

Python/importlib.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3107,4 +3107,4 @@ unsigned char _Py_M__importlib[] = {
31073107
13,12,9,12,15,12,17,15,2,6,2,12,41,18,25,12,
31083108
23,12,15,24,34,12,45,
31093109
};
3110-
3110+
/* Mercurial binary marker: */

0 commit comments

Comments
 (0)