mirror of
https://github.com/python/cpython.git
synced 2025-09-08 01:41:19 +00:00
Avoid "warning: no newline at end of file" in importlib.h.
This commit is contained in:
parent
32bc80c523
commit
b84bc7a7ce
2 changed files with 3 additions and 1 deletions
|
@ -25,6 +25,8 @@ def main(input_path, output_path):
|
||||||
with open(output_path, 'w', encoding='utf-8') as output_file:
|
with open(output_path, 'w', encoding='utf-8') as output_file:
|
||||||
output_file.write('\n'.join(lines))
|
output_file.write('\n'.join(lines))
|
||||||
output_file.write('/* Mercurial binary marker: \x00 */')
|
output_file.write('/* Mercurial binary marker: \x00 */')
|
||||||
|
# Avoid a compiler warning for lack of EOL
|
||||||
|
output_file.write('\n')
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
|
@ -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,
|
12,17,6,2,12,47,18,25,12,23,12,15,24,30,6,1,
|
||||||
6,3,12,54,
|
6,3,12,54,
|
||||||
};
|
};
|
||||||
/* Mercurial binary marker: |