commit d9d75d4ae148be91b0d6520c7addf4a1a484393a Author: Nick Mathewson nickm@torproject.org Date: Sat Nov 23 15:30:18 2019 -0500
rename_c_identifier: don't crash when doing only one replacement. --- scripts/maint/rename_c_identifier.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/maint/rename_c_identifier.py b/scripts/maint/rename_c_identifier.py index e8cdb895a..213172d91 100755 --- a/scripts/maint/rename_c_identifier.py +++ b/scripts/maint/rename_c_identifier.py @@ -132,7 +132,7 @@ def make_commit_msg(pairs, no_verify): script = " \\n".join(script)
if len(pairs) == 1: - line1 = "Rename {} to {}".format(pairs[0]) + line1 = "Rename {} to {}".format(*pairs[0]) else: line1 = "Replace several C identifiers."
tor-commits@lists.torproject.org