Explorar el Código

format_changelog: Sort sections case-insensitively

Nick Mathewson hace 9 años
padre
commit
6c5db03e02
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      scripts/maint/format_changelog.py

+ 2 - 2
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: