From a938c74751d3ffb23cb68044939a5c06d2d4f280 Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Mon, 16 Apr 2012 18:30:54 +0200 Subject: Avoid compiler warning due to stray \x00 --- Python/freeze_importlib.py | 4 ++-- Python/importlib.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Python/freeze_importlib.py b/Python/freeze_importlib.py index 9cce0b1..c012722 100644 --- a/Python/freeze_importlib.py +++ b/Python/freeze_importlib.py @@ -22,9 +22,9 @@ def main(input_path, output_path): line.append('%d,' % c) lines.append(''.join(line)) 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('\u0000') + output_file.write('/* Mercurial binary marker: \x00 */') if __name__ == '__main__': diff --git a/Python/importlib.h b/Python/importlib.h index f11dcbb..3a03c46 100644 --- a/Python/importlib.h +++ b/Python/importlib.h @@ -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, 23,12,15,24,34,12,45, }; - \ No newline at end of file +/* Mercurial binary marker: */ \ No newline at end of file -- cgit v0.12