summaryrefslogtreecommitdiffstats
path: root/bin/glsa-check
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-07-01 12:53:07 +0000
committerZac Medico <zmedico@gentoo.org>2008-07-01 12:53:07 +0000
commit56aea2672000174743514bcc7f58f41733f64ce4 (patch)
treec6d9cb04d5b2d50eb0670354a42123ac4e78c44c /bin/glsa-check
parenta4c79bdfd0b8e5a58ce1bfd181a41a8625370b73 (diff)
downloadportage-56aea2672000174743514bcc7f58f41733f64ce4.tar.gz
portage-56aea2672000174743514bcc7f58f41733f64ce4.tar.bz2
portage-56aea2672000174743514bcc7f58f41733f64ce4.zip
Py3k compatibility patch #5 by Ali Polatel <hawking@g.o>.
Replace dict.has_key() calls with "in" and "not in" operators. svn path=/main/trunk/; revision=10874
Diffstat (limited to 'bin/glsa-check')
-rw-r--r--bin/glsa-check4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/glsa-check b/bin/glsa-check
index 8d955526a..82fb5e49d 100644
--- a/bin/glsa-check
+++ b/bin/glsa-check
@@ -293,12 +293,12 @@ if mode == "mail":
# color doesn't make any sense for mail
nocolor()
- if portage.settings.has_key("PORTAGE_ELOG_MAILURI"):
+ if "PORTAGE_ELOG_MAILURI" in portage.settings:
myrecipient = portage.settings["PORTAGE_ELOG_MAILURI"].split()[0]
else:
myrecipient = "root@localhost"
- if portage.settings.has_key("PORTAGE_ELOG_MAILFROM"):
+ if "PORTAGE_ELOG_MAILFROM" in portage.settings:
myfrom = portage.settings["PORTAGE_ELOG_MAILFROM"]
else:
myfrom = "glsa-check"