]> git.pld-linux.org Git - projects/pld-ftp-admin.git/commitdiff
Fix call to cmp_to_key
authorJan Rękorajski <baggins@pld-linux.org>
Sun, 28 Feb 2021 19:02:45 +0000 (20:02 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Sun, 28 Feb 2021 19:02:45 +0000 (20:02 +0100)
wwwbin/clean-dups.py

index 7b1ed749543ffe82c0e4a7f74f2adcbf5ff9c727..b1b0e33c8fd75451a29b45ec6e17d241e127f30e 100755 (executable)
@@ -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 = {}
This page took 0.166495 seconds and 4 git commands to generate.