HBASE-18607: fix submit-patch.py to support utf8

one liner to support utf8 content

Change-Id: I57508879bea25aa5ae69e01e777b91a7160aafc8
Signed-off-by: Apekshit Sharma <appy@apache.org>
This commit is contained in:
Tamas Penzes 2017-08-16 10:25:45 +02:00 committed by Apekshit Sharma
parent 08a9522fc1
commit 158f3da167
1 changed files with 1 additions and 1 deletions

View File

@ -250,7 +250,7 @@ patch_filepath = os.path.join(patch_dir, patch_filename)
diff = git.format_patch(base_branch, stdout = True)
with open(patch_filepath, "w") as f:
f.write(diff)
f.write(diff.encode('utf8'))
if args.jira_id is not None:
creds = get_credentials()