From 7d5a034d731b2253c46eae8d5ce60f4fa5a9eadc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Sun, 28 Feb 2021 20:01:20 +0100 Subject: [PATCH] Workaround for removed compare function to sorted() https://docs.python.org/3.6/library/functools.html#functools.cmp_to_key --- wwwbin/clean-dups.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wwwbin/clean-dups.py b/wwwbin/clean-dups.py index dfda371..e0371b4 100755 --- a/wwwbin/clean-dups.py +++ b/wwwbin/clean-dups.py @@ -95,7 +95,7 @@ def compare(f1, f2): def find_old(files): - return sorted(files, compare) + return sorted(files, key=cmp_to_key(compare)) files = {} dupes = {} -- 2.43.0