diff options
author | Jan Rękorajski | 2021-02-28 18:59:20 (GMT) |
---|---|---|
committer | Jan Rękorajski | 2021-02-28 18:59:20 (GMT) |
commit | 5605351f2e57f2c65952e4a5a560578783b35e84 (patch) | |
tree | 4e7932ed0438ddf1f2971a076fbe7ade665c7a4c | |
parent | 775a7cee44595f194b6cb810022448fc914cc93d (diff) | |
download | pld-ftp-admin-5605351f2e57f2c65952e4a5a560578783b35e84.zip pld-ftp-admin-5605351f2e57f2c65952e4a5a560578783b35e84.tar.gz |
Use correct dictionary key checks
-rwxr-xr-x | wwwbin/clean-dups.py | 4 |
1 files changed, 2 insertions, 2 deletions
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] ] |