summaryrefslogtreecommitdiffstats
path: root/Python/freeze_importlib.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2012-05-16 10:58:04 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2012-05-16 10:58:04 (GMT)
commitb84bc7a7ce6649f786b5b3f80e944cb51b332faf (patch)
treeaf3af1efe9ad544eba45d54557f2bb871989eca5 /Python/freeze_importlib.py
parent32bc80c523ed31d86d3deda99e0c18d4fc6c2e93 (diff)
downloadcpython-b84bc7a7ce6649f786b5b3f80e944cb51b332faf.zip
cpython-b84bc7a7ce6649f786b5b3f80e944cb51b332faf.tar.gz
cpython-b84bc7a7ce6649f786b5b3f80e944cb51b332faf.tar.bz2
Avoid "warning: no newline at end of file" in importlib.h.
Diffstat (limited to 'Python/freeze_importlib.py')
-rw-r--r--Python/freeze_importlib.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/freeze_importlib.py b/Python/freeze_importlib.py
index c012722..b96e7f2 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__':