[Python-checkins] cpython: Avoid "warning: no newline at end of file" in importlib.h.

antoine.pitrou python-checkins at python.org
Wed May 16 13:00:28 CEST 2012


http://hg.python.org/cpython/rev/6e5c517da087
changeset:   76989:6e5c517da087
user:        Antoine Pitrou <solipsis at pitrou.net>
date:        Wed May 16 12:58:04 2012 +0200
summary:
  Avoid "warning: no newline at end of file" in importlib.h.

files:
  Python/freeze_importlib.py |    2 ++
  Python/importlib.h         |  Bin 
  2 files changed, 2 insertions(+), 0 deletions(-)


diff --git a/Python/freeze_importlib.py b/Python/freeze_importlib.py
--- a/Python/freeze_importlib.py
+++ b/Python/freeze_importlib.py
@@ -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__':
diff --git a/Python/importlib.h b/Python/importlib.h
index 0beeb595dbc38d821fb4f6de0981347f3983420a..cf5619a6c4b0587815b87145eae5bf212ec7e5f1
GIT binary patch
[stripped]

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list