diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-07-01 12:50:41 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-07-01 12:50:41 +0000 |
commit | a4c79bdfd0b8e5a58ce1bfd181a41a8625370b73 (patch) | |
tree | f4a103a83668c1e8280ee7044f185ce73b72cbf3 /pym/portage/elog/filtering.py | |
parent | 5495f72f0c8202728636eb9bdac74ce5009b0d5a (diff) | |
download | portage-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/filtering.py')
-rw-r--r-- | pym/portage/elog/filtering.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/elog/filtering.py b/pym/portage/elog/filtering.py index b41f64e48..8a1852bd8 100644 --- a/pym/portage/elog/filtering.py +++ b/pym/portage/elog/filtering.py @@ -12,7 +12,7 @@ def filter_loglevels(logentries, loglevels): for phase in logentries: for msgtype, msgcontent in logentries[phase]: if msgtype.upper() in loglevels or "*" in loglevels: - if not rValue.has_key(phase): + if phase not in rValue: rValue[phase] = [] rValue[phase].append((msgtype, msgcontent)) return rValue |