Skip to content

Commit

Permalink
Use print(...) instead of undefined printf(...)
Browse files Browse the repository at this point in the history
  • Loading branch information
practicalswift committed Aug 28, 2017
1 parent 25cd520 commit 51cb6b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contrib/devtools/github-merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,12 +254,12 @@ def main():
first_sha512 = tree_sha512sum()
message += '\n\nTree-SHA512: ' + first_sha512
except subprocess.CalledProcessError as e:
printf("ERROR: Unable to compute tree hash")
print("ERROR: Unable to compute tree hash")
sys.exit(4)
try:
subprocess.check_call([GIT,'commit','--amend','-m',message.encode('utf-8')])
except subprocess.CalledProcessError as e:
printf("ERROR: Cannot update message.",file=stderr)
print("ERROR: Cannot update message.", file=stderr)
sys.exit(4)

print_merge_details(pull, title, branch, base_branch, head_branch)
Expand Down

0 comments on commit 51cb6b8

Please sign in to comment.