X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;ds=sidebyside;f=wwwbin%2Fclean-dups.py;fp=wwwbin%2Fclean-dups.py;h=dfda3717b87889c604f424cda41f5b6df1b5e2ba;hb=5605351f2e57f2c65952e4a5a560578783b35e84;hp=fa084e9beac8f4b075560e3d23eb847e67e3c72e;hpb=775a7cee44595f194b6cb810022448fc914cc93d;p=projects%2Fpld-ftp-admin.git diff --git a/wwwbin/clean-dups.py b/wwwbin/clean-dups.py index fa084e9..dfda371 100755 --- a/wwwbin/clean-dups.py +++ b/wwwbin/clean-dups.py @@ -120,8 +120,8 @@ for file in os.listdir(dir): name = m.group(1) - if files.has_key(name): - if dupes.has_key(name): + if name in files: + if name in dupes: dupes[name].append(file) else: dupes[name] = [ files[name] ]