summaryrefslogtreecommitdiffstats
path: root/lib/python/bugs.py
diff options
context:
space:
mode:
authorBrian May <brian@linuxpenguins.xyz>2018-08-20 17:02:59 +1000
committerBrian May <brian@linuxpenguins.xyz>2018-08-20 17:03:53 +1000
commit85592e7c4627fd355fee2a7d322360f51d7c08c0 (patch)
treeca3ce3f8db23d27966c756f9f8544cb0b92a696a /lib/python/bugs.py
parentb92c7cf1a42bd1588e7788a63bae735b65b27513 (diff)
Replace "x.has_key(y)" with "y in x" syntax
Diffstat (limited to 'lib/python/bugs.py')
-rw-r--r--lib/python/bugs.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/python/bugs.py b/lib/python/bugs.py
index 93bef74604..700a9c0272 100644
--- a/lib/python/bugs.py
+++ b/lib/python/bugs.py
@@ -31,7 +31,7 @@ def listUrgencies():
Urgency.urgencies = urgencies
return urgencies
def internUrgency(name, urgencies=listUrgencies()):
- if urgencies.has_key(name):
+ if name in urgencies:
return urgencies[name]
else:
return None
@@ -282,7 +282,7 @@ class Bug(BugBase):
notes = {}
for n in self.notes:
key = (n.package, n.release)
- if notes.has_key(key):
+ if key in notes:
notes[key].merge(n)
else:
notes[key] = n

© 2014-2024 Faster IT GmbH | imprint | privacy policy