summaryrefslogtreecommitdiffstats
path: root/pym/portage/elog
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-09-30 01:06:20 +0000
committerZac Medico <zmedico@gentoo.org>2008-09-30 01:06:20 +0000
commit3f64053d6d09603b8b031b3020d6c09556fbf185 (patch)
tree90c07af097fef961ae78dd6cfedf7522267548ac /pym/portage/elog
parent6a45cf7fa340be3754f12222089f2e57cb560b4a (diff)
downloadportage-3f64053d6d09603b8b031b3020d6c09556fbf185.tar.gz
portage-3f64053d6d09603b8b031b3020d6c09556fbf185.tar.bz2
portage-3f64053d6d09603b8b031b3020d6c09556fbf185.zip
Now that elog_base() uses 'echo -e' to expand escape codes prior to using
'read' to split on newlines, it's safe to use newlines as delimiters in the log file since 'read' is guaranteed to split any newlines contained in the arguments. svn path=/main/trunk/; revision=11601
Diffstat (limited to 'pym/portage/elog')
-rw-r--r--pym/portage/elog/messages.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/elog/messages.py b/pym/portage/elog/messages.py
index de736664c..707003122 100644
--- a/pym/portage/elog/messages.py
+++ b/pym/portage/elog/messages.py
@@ -35,7 +35,7 @@ def collect_ebuild_messages(path):
logentries[msgfunction] = []
lastmsgtype = None
msgcontent = []
- for l in open(filename, "r").read().split("\0"):
+ for l in open(filename, "rb"):
if not l:
continue
try: