summaryrefslogtreecommitdiffstats
path: root/pym/portage/elog/mod_mail.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-07-01 12:50:41 +0000
committerZac Medico <zmedico@gentoo.org>2008-07-01 12:50:41 +0000
commita4c79bdfd0b8e5a58ce1bfd181a41a8625370b73 (patch)
treef4a103a83668c1e8280ee7044f185ce73b72cbf3 /pym/portage/elog/mod_mail.py
parent5495f72f0c8202728636eb9bdac74ce5009b0d5a (diff)
downloadportage-a4c79bdfd0b8e5a58ce1bfd181a41a8625370b73.tar.gz
portage-a4c79bdfd0b8e5a58ce1bfd181a41a8625370b73.tar.bz2
portage-a4c79bdfd0b8e5a58ce1bfd181a41a8625370b73.zip
Py3k compatibility patch #4 by Ali Polatel <hawking@g.o>.
Replace dict.has_key() calls with "in" and "not in" operators. svn path=/main/trunk/; revision=10873
Diffstat (limited to 'pym/portage/elog/mod_mail.py')
-rw-r--r--pym/portage/elog/mod_mail.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/elog/mod_mail.py b/pym/portage/elog/mod_mail.py
index 09e3db22d..d6383a4eb 100644
--- a/pym/portage/elog/mod_mail.py
+++ b/pym/portage/elog/mod_mail.py
@@ -8,7 +8,7 @@ from portage.exception import PortageException
from portage.util import writemsg
def process(mysettings, key, logentries, fulltext):
- if mysettings.has_key("PORTAGE_ELOG_MAILURI"):
+ if "PORTAGE_ELOG_MAILURI" in mysettings:
myrecipient = mysettings["PORTAGE_ELOG_MAILURI"].split()[0]
else:
myrecipient = "root@localhost"