X-Git-Url: https://git.pld-linux.org/?p=projects%2Fpld-ftp-admin.git;a=blobdiff_plain;f=wwwbin%2Fclean-dups.py;fp=wwwbin%2Fclean-dups.py;h=b1b0e33c8fd75451a29b45ec6e17d241e127f30e;hp=7b1ed749543ffe82c0e4a7f74f2adcbf5ff9c727;hb=8c195b0ffcd930308f26c52ff7d081e22bac7bbe;hpb=75bfea46b4de27fb0e7aeb52bef86430ec864334 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 = {}