mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-22 19:45:34 +00:00
Simplify sorting
Calling sort_key explicitly is marginally faster, but less readable. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
28af958ea4
commit
7fa3eb7d44
|
@ -400,7 +400,7 @@ def list_files_to_merge(options):
|
|||
"Oldest" is defined by `EntryFileSortKey`.
|
||||
"""
|
||||
files_to_merge = glob.glob(os.path.join(options.dir, '*.md'))
|
||||
files_to_merge.sort(key=lambda f: EntryFileSortKey(f).sort_key())
|
||||
files_to_merge.sort(key=EntryFileSortKey)
|
||||
return files_to_merge
|
||||
|
||||
def merge_entries(options):
|
||||
|
|
Loading…
Reference in a new issue