From a4c79bdfd0b8e5a58ce1bfd181a41a8625370b73 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 1 Jul 2008 12:50:41 +0000 Subject: Py3k compatibility patch #4 by Ali Polatel . Replace dict.has_key() calls with "in" and "not in" operators. svn path=/main/trunk/; revision=10873 --- pym/portage/elog/mod_mail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pym/portage/elog/mod_mail.py') 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" -- cgit v1.2.3-1-g7c22