From 158f3da167bf9d172d87132d21b569df53706411 Mon Sep 17 00:00:00 2001 From: Tamas Penzes Date: Wed, 16 Aug 2017 10:25:45 +0200 Subject: [PATCH] HBASE-18607: fix submit-patch.py to support utf8 one liner to support utf8 content Change-Id: I57508879bea25aa5ae69e01e777b91a7160aafc8 Signed-off-by: Apekshit Sharma --- dev-support/submit-patch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-support/submit-patch.py b/dev-support/submit-patch.py index 236f31d04ca..577be52472e 100755 --- a/dev-support/submit-patch.py +++ b/dev-support/submit-patch.py @@ -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()