summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-11-23 15:30:18 -0500
committerNick Mathewson <nickm@torproject.org>2019-11-23 15:30:18 -0500
commitd9d75d4ae148be91b0d6520c7addf4a1a484393a (patch)
tree06ea2b0a3180dcb3d1f8b829b2dae6a8ea350710 /scripts
parentcf22841e3bf45a8b73900dd480022f1722d3b557 (diff)
downloadtor-d9d75d4ae148be91b0d6520c7addf4a1a484393a.tar.gz
tor-d9d75d4ae148be91b0d6520c7addf4a1a484393a.zip
rename_c_identifier: don't crash when doing only one replacement.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/maint/rename_c_identifier.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/maint/rename_c_identifier.py b/scripts/maint/rename_c_identifier.py
index e8cdb895a2..213172d913 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."