From 8c195b0ffcd930308f26c52ff7d081e22bac7bbe Mon Sep 17 00:00:00 2001 From: Jan Rękorajski Date: Sun, 28 Feb 2021 20:02:45 +0100 Subject: Fix call to cmp_to_key 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 = {} -- cgit v0.10.2