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:
parent
eb906e20ee
commit
2eee7a3f8b
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue