chore: fix missing \n at end of exported patches (#15579)

This commit is contained in:
Jeremy Apthorp 2018-11-05 13:50:35 -08:00 committed by GitHub
parent 77f69cbe08
commit 2e1c50c891
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -123,7 +123,7 @@ def main(argv):
for patch in patches:
filename = get_file_name(patch)
with open(os.path.join(out_dir, filename), 'w') as f:
f.write('\n'.join(remove_patch_filename(patch)))
f.write('\n'.join(remove_patch_filename(patch)).rstrip('\n') + '\n')
pl.write(filename + '\n')