commit 7d5a034d731b2253c46eae8d5ce60f4fa5a9eadc
Author: Jan RÄ™korajski <[email protected]>
Date:   Sun Feb 28 20:01:20 2021 +0100

    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 = {}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/pld-ftp-admin.git/commitdiff/75bfea46b4de27fb0e7aeb52bef86430ec864334

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to