def _combine_logentries(logentries):
# generate a single string with all log messages
- rValue = ""
+ rValue = []
for phase in EBUILD_PHASES:
if not phase in logentries:
continue
for msgtype, msgcontent in logentries[phase]:
if previous_type != msgtype:
previous_type = msgtype
- rValue += "%s: %s\n" % (msgtype, phase)
+ rValue.append("%s: %s\n" % (msgtype, phase))
for line in msgcontent:
- rValue += line
- rValue += "\n"
- return rValue
+ rValue.append(line)
+ rValue.append("\n")
+ return "".join(rValue)
_elog_atexit_handlers = []
_preserve_logentries = {}