summaryrefslogtreecommitdiff
path: root/gbp/patch_series.py
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2015-02-19 16:02:23 +0100
committerGuido Günther <agx@sigxcpu.org>2015-02-20 12:41:12 +0100
commit3ef32e2a51dd8bdcb904ccd8f33683149a55916a (patch)
tree97a5740902e7557c8f174e7a702d9ce3a54587b4 /gbp/patch_series.py
parent4766e1190a7ccb4c5a8f21ce3e8919637ff9c142 (diff)
Don't use dict.has_key()
Not existent in Python3
Diffstat (limited to 'gbp/patch_series.py')
-rw-r--r--gbp/patch_series.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gbp/patch_series.py b/gbp/patch_series.py
index 327997f..ca45cab 100644
--- a/gbp/patch_series.py
+++ b/gbp/patch_series.py
@@ -130,7 +130,7 @@ class Patch(object):
if self.info == None:
self._read_info()
- if self.info.has_key(key):
+ if key in self.info:
return self.info[key]
else:
return get_val() if get_val else None