[projects/pld-ftp-admin] Fix call to cmp_to_key
baggins
baggins at pld-linux.org
Sun Feb 28 20:02:55 CET 2021
commit 8c195b0ffcd930308f26c52ff7d081e22bac7bbe
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sun Feb 28 20:02:45 2021 +0100
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 = {}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/pld-ftp-admin.git/commitdiff/8c195b0ffcd930308f26c52ff7d081e22bac7bbe
More information about the pld-cvs-commit
mailing list