summaryrefslogtreecommitdiffstats
path: root/lib/python/debian_support.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
commit31aca62f62cce87080136d412887985f33f14002 (patch)
treea8423bc0ba5c597ab3c023fe1b33291a883bb16c /lib/python/debian_support.py
parent5329c29f14195ba309102d64eb8d088c4d36ffc1 (diff)
Replace "x.has_key(y)" with "y in x" syntax
Diffstat (limited to 'lib/python/debian_support.py')
-rw-r--r--lib/python/debian_support.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/python/debian_support.py b/lib/python/debian_support.py
index 26ce3507cf..ebe20f8184 100644
--- a/lib/python/debian_support.py
+++ b/lib/python/debian_support.py
@@ -201,7 +201,7 @@ def listReleases():
Release.releases = releases
return releases
def internRelease(name, releases=listReleases()):
- if releases.has_key(name):
+ if name in releases:
return releases[name]
else:
return None

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