From 6c5db03e023afa583c3199c322bf1458c3b0125e Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Sun, 19 Oct 2014 14:19:22 -0400 Subject: [PATCH] format_changelog: Sort sections case-insensitively --- scripts/maint/format_changelog.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/maint/format_changelog.py b/scripts/maint/format_changelog.py index 398e7ea611..b1a0988766 100755 --- a/scripts/maint/format_changelog.py +++ b/scripts/maint/format_changelog.py @@ -321,12 +321,12 @@ class ChangeLog(object): s = sectionsByHead[head] except KeyError: s = sectionsByHead[head] = [] - heads.append( (head_score(head), head, s) ) + heads.append( (head_score(head), head.lower(), head, s) ) s.extend(items) heads.sort() - self.sections = [ (0, head, items) for _,head,items in heads ] + self.sections = [ (0, head, items) for _1,_2,head,items in heads ] def dump(self): if self.prehead: