From 8c195b0ffcd930308f26c52ff7d081e22bac7bbe Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Sun, 28 Feb 2021 20:02:45 +0100 Subject: [PATCH] Fix call to 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 7b1ed74..b1b0e33 100755 --- a/wwwbin/clean-dups.py +++ b/wwwbin/clean-dups.py @@ -96,7 +96,7 @@ def compare(f1, f2): def find_old(files): - return sorted(files, key=cmp_to_key(compare)) + return sorted(files, key=functools.cmp_to_key(compare)) files = {} dupes = {} -- 2.44.0