HBASE-20910 Fix dev-support/submit-patch.py by opening file with 'b' mode

Signed-off-by: tedyu <yuzhihong@gmail.com>
Signed-off-by: Mike Drob <mdrob@apache.org>
This commit is contained in:
Ankit Singhal 2018-07-20 15:23:38 -07:00 committed by tedyu
parent eb906e20ee
commit 2eee7a3f8b
1 changed files with 1 additions and 1 deletions

View File

@ -249,7 +249,7 @@ logger.info(" Patch name: %s", patch_filename)
patch_filepath = os.path.join(patch_dir, patch_filename)
diff = git.format_patch(base_branch, stdout = True)
with open(patch_filepath, "w") as f:
with open(patch_filepath, "wb") as f:
f.write(diff.encode('utf8'))
if args.jira_id is not None: