]> granicus.if.org Git - python/commitdiff
Avoid "warning: no newline at end of file" in importlib.h.
authorAntoine Pitrou <solipsis@pitrou.net>
Wed, 16 May 2012 10:58:04 +0000 (12:58 +0200)
committerAntoine Pitrou <solipsis@pitrou.net>
Wed, 16 May 2012 10:58:04 +0000 (12:58 +0200)
Python/freeze_importlib.py
Python/importlib.h

index c012722a42b94fa43c4c2e02aaf4ad05f9df2365..b96e7f2f2f8647b4788de25afdbdc21b829668ca 100644 (file)
@@ -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__':
index 0beeb595dbc38d821fb4f6de0981347f3983420a..cf5619a6c4b0587815b87145eae5bf212ec7e5f1 100644 (file)
@@ -3029,4 +3029,4 @@ unsigned char _Py_M__importlib[] = {
     12,17,6,2,12,47,18,25,12,23,12,15,24,30,6,1,
     6,3,12,54,
 };
-/* Mercurial binary marker: \0 */
\ No newline at end of file
+/* Mercurial binary marker: \0 */