from portage.const import EBUILD_PHASES
from portage import _encodings
+if sys.hexversion >= 0x3000000:
+ basestring = str
+
_pri = {
"INFO" : syslog.LOG_INFO,
"WARN" : syslog.LOG_WARNING,
if not phase in logentries:
continue
for msgtype,msgcontent in logentries[phase]:
+ if isinstance(msgcontent, basestring):
+ msgcontent = [msgcontent]
for line in msgcontent:
line = "%s: %s: %s" % (key, phase, line)
if sys.hexversion < 0x3000000 and not isinstance(line, bytes):