aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-02-19 10:24:06 +0000
committerZac Medico <zmedico@gentoo.org>2009-02-19 10:24:06 +0000
commit1ce1c11a12cf13744352030dec3b04322e7f16d0 (patch)
tree6441c202863f085e050727a64a3823128257dc0f /pym/portage/elog
parentFor compatibility with python-3.0, always open streams for pickles in binary (diff)
downloadportage-1ce1c11a12cf13744352030dec3b04322e7f16d0.tar.gz
portage-1ce1c11a12cf13744352030dec3b04322e7f16d0.tar.bz2
portage-1ce1c11a12cf13744352030dec3b04322e7f16d0.zip
For compatibility with python-3.0, open files in text mode where appropriate.
svn path=/main/trunk/; revision=12642
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 ad95c975d..a09b73229 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, "rb"):
+ for l in open(filename):
if not l:
continue
try: