[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] format_changelog: Sort sections case-insensitively



commit 6c5db03e023afa583c3199c322bf1458c3b0125e
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Sun Oct 19 14:19:22 2014 -0400

    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 398e7ea..b1a0988 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:

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits