projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0cded2
)
Inside portage.spawn(), open files for logfile handling in binary mode, for
author
Zac Medico
<zmedico@gentoo.org>
Wed, 11 Mar 2009 06:03:50 +0000
(06:03 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Wed, 11 Mar 2009 06:03:50 +0000
(06:03 -0000)
compatibility with python-3.0. (trunk r12668)
svn path=/main/branches/2.1.6/; revision=12930
pym/portage/__init__.py
patch
|
blob
|
history
diff --git
a/pym/portage/__init__.py
b/pym/portage/__init__.py
index a97834f48502d4daf58d7a170ee6d95a7d9ae77c..c2699a8da54926516b68f0b108eaef7213d404c0 100644
(file)
--- a/
pym/portage/__init__.py
+++ b/
pym/portage/__init__.py
@@
-3188,9
+3188,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 = []