rename_c_identifier: don't crash when doing only one replacement.

This commit is contained in:
Nick Mathewson 2019-11-23 15:30:18 -05:00
parent cf22841e3b
commit d9d75d4ae1

View File

@ -132,7 +132,7 @@ def make_commit_msg(pairs, no_verify):
script = " \\\n".join(script) script = " \\\n".join(script)
if len(pairs) == 1: if len(pairs) == 1:
line1 = "Rename {} to {}".format(pairs[0]) line1 = "Rename {} to {}".format(*pairs[0])
else: else:
line1 = "Replace several C identifiers." line1 = "Replace several C identifiers."