From: Antoine Pitrou Date: Wed, 16 May 2012 10:58:04 +0000 (+0200) Subject: Avoid "warning: no newline at end of file" in importlib.h. X-Git-Tag: v3.3.0a4~153^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b84bc7a7ce6649f786b5b3f80e944cb51b332faf;p=python Avoid "warning: no newline at end of file" in importlib.h. --- 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__': diff --git a/Python/importlib.h b/Python/importlib.h index 0beeb595db..cf5619a6c4 100644 --- a/Python/importlib.h +++ b/Python/importlib.h @@ -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: */ \ No newline at end of file +/* Mercurial binary marker: */