From b84bc7a7ce6649f786b5b3f80e944cb51b332faf Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Wed, 16 May 2012 12:58:04 +0200 Subject: Avoid "warning: no newline at end of file" in importlib.h. --- Python/freeze_importlib.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Python/freeze_importlib.py') diff --git a/Python/freeze_importlib.py b/Python/freeze_importlib.py index c012722a42..b96e7f2f2f 100644 --- a/Python/freeze_importlib.py +++ b/Python/freeze_importlib.py @@ -25,6 +25,8 @@ def main(input_path, output_path): with open(output_path, 'w', encoding='utf-8') as output_file: output_file.write('\n'.join(lines)) output_file.write('/* Mercurial binary marker: \x00 */') + # Avoid a compiler warning for lack of EOL + output_file.write('\n') if __name__ == '__main__': -- cgit v1.2.1