summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Rękorajski2021-02-28 18:59:20 (GMT)
committerJan Rękorajski2021-02-28 18:59:20 (GMT)
commit5605351f2e57f2c65952e4a5a560578783b35e84 (patch)
tree4e7932ed0438ddf1f2971a076fbe7ade665c7a4c
parent775a7cee44595f194b6cb810022448fc914cc93d (diff)
downloadpld-ftp-admin-5605351f2e57f2c65952e4a5a560578783b35e84.zip
pld-ftp-admin-5605351f2e57f2c65952e4a5a560578783b35e84.tar.gz
Use correct dictionary key checks
-rwxr-xr-xwwwbin/clean-dups.py4
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] ]