projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3eaa2ce
)
Inside portage.spawn(), open files for logfile handling in binary mode, for
author
Zac Medico
<zmedico@gentoo.org>
Sat, 21 Feb 2009 02:44:24 +0000
(
02:44
-0000)
committer
Zac Medico
<zmedico@gentoo.org>
Sat, 21 Feb 2009 02:44:24 +0000
(
02:44
-0000)
compatibility with python-3.0.
svn path=/main/trunk/; revision=12668
pym/portage/__init__.py
patch
|
blob
|
history
diff --git
a/pym/portage/__init__.py
b/pym/portage/__init__.py
index 3be6e651f3c7ecc04f7dac9b1f52b4aeff962f5b..c18d430137f9924dff2968ef412654d6eff255bb 100644
(file)
--- a/
pym/portage/__init__.py
+++ b/
pym/portage/__init__.py
@@
-3198,9
+3198,9
@@
def spawn(mystring, mysettings, debug=0, free=0, droppriv=0, sesandbox=0, fakero
return mypids
if logfile:
- log_file = open(logfile,
'a
')
- stdout_file = os.fdopen(os.dup(fd_pipes_orig[1]), 'w')
- master_file = os.fdopen(master_fd, 'r')
+ log_file = open(logfile,
mode='ab
')
+ stdout_file = os.fdopen(os.dup(fd_pipes_orig[1]), 'w
b
')
+ master_file = os.fdopen(master_fd, 'r
b
')
iwtd = [master_file]
owtd = []
ewtd = []