summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-08-06 21:57:31 +0000
committerZac Medico <zmedico@gentoo.org>2009-08-06 21:57:31 +0000
commita2353c4af5955173aa1324cacfdb7beb91f492bd (patch)
treedae826d5737e8cb09e58fb6a99ca037924e41e0b
parent78e6f6b713ce7941980143c1e2b63aa845659a21 (diff)
downloadportage-a2353c4af5955173aa1324cacfdb7beb91f492bd.tar.gz
portage-a2353c4af5955173aa1324cacfdb7beb91f492bd.tar.bz2
portage-a2353c4af5955173aa1324cacfdb7beb91f492bd.zip
Fix filter_loglevels() and filter_phases() to work with unicode.
svn path=/main/trunk/; revision=13940
-rw-r--r--pym/portage/elog/filtering.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/portage/elog/filtering.py b/pym/portage/elog/filtering.py
index d33d31237..d4d405347 100644
--- a/pym/portage/elog/filtering.py
+++ b/pym/portage/elog/filtering.py
@@ -8,7 +8,7 @@ from portage.const import EBUILD_PHASES
def filter_loglevels(logentries, loglevels):
# remove unwanted entries from all logentries
rValue = {}
- loglevels = map(str.upper, loglevels)
+ loglevels = [x.upper() for x in loglevels]
for phase in logentries:
for msgtype, msgcontent in logentries[phase]:
if msgtype.upper() in loglevels or "*" in loglevels:
@@ -20,7 +20,7 @@ def filter_loglevels(logentries, loglevels):
def filter_phases(logentries, phases):
rValue1 = {}
rValue2 = {}
- phases = map(str.lower, phases)
+ phases = [x.lower() for x in phases]
for phase in logentries:
if phase in phases:
rValue1[phase] = logentries[phase]