diff Python/freeze_importlib.py @ 76989:6e5c517da087

Avoid "warning: no newline at end of file" in importlib.h.
author Antoine Pitrou <solipsis@pitrou.net>
date Wed, 16 May 2012 12:58:04 +0200
parents e97ead910cc1
children 7d86e207598f
line wrap: on
line diff
--- a/Python/freeze_importlib.py	Wed May 16 12:51:55 2012 +0200
+++ b/Python/freeze_importlib.py	Wed May 16 12:58:04 2012 +0200
@@ -25,6 +25,8 @@
     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__':