]> git.pld-linux.org Git - projects/pld-ftp-admin.git/blobdiff - wwwbin/clean-dups.py
Workaround for removed compare function to sorted()
[projects/pld-ftp-admin.git] / wwwbin / clean-dups.py
index dfda3717b87889c604f424cda41f5b6df1b5e2ba..e0371b4262ad24708fcf431680a386740e624d37 100755 (executable)
@@ -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 = {}
This page took 0.078374 seconds and 4 git commands to generate.