# HG changeset patch # User Henry S. Thompson # Date 1696601155 -3600 # Node ID 85343fe48f696af01a317d3812aa0d829cfdeb39 # Parent 34562e621f6dfb2236227a3ec2c170f77c7d9cbf no longer using cmp_to_key diff -r 34562e621f6d -r 85343fe48f69 lib/python/cc/lmh/sort_date.py --- 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],