mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 13:13:44 +01:00
format_changelog: Sort sections case-insensitively
This commit is contained in:
parent
5344093829
commit
6c5db03e02
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user