Mercurial > hg > cc > cirrus_work
changeset 152:85343fe48f69
no longer using cmp_to_key
author | Henry S. Thompson <ht@inf.ed.ac.uk> |
---|---|
date | Fri, 06 Oct 2023 15:05:55 +0100 |
parents | 34562e621f6d |
children | 58df6981269e |
files | lib/python/cc/lmh/sort_date.py |
diffstat | 1 files changed, 0 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/python/cc/lmh/sort_date.py Wed Oct 04 18:53:55 2023 +0100 +++ b/lib/python/cc/lmh/sort_date.py Fri Oct 06 15:05:55 2023 +0100 @@ -217,7 +217,6 @@ # crucial that the following is done _after_ the file is opened # with the default (utf-8) locale! locale.setlocale(locale.LC_ALL, "C") - ctk=cmp_to_key(locale.strcoll) for key, ts in sorted((kk for l in ff if (kk:=keyed(l)) is not None), key=lambda x:x[0]): print(key[0],key[1],