projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fba4880
)
dispatch_conf: don't pass bytes for Popen cmd
author
Zac Medico
<zmedico@gentoo.org>
Sun, 1 Apr 2012 16:38:27 +0000
(09:38 -0700)
committer
Zac Medico
<zmedico@gentoo.org>
Sun, 1 Apr 2012 16:38:27 +0000
(09:38 -0700)
This will fix bug #410417.
pym/portage/dispatch_conf.py
patch
|
blob
|
history
diff --git
a/pym/portage/dispatch_conf.py
b/pym/portage/dispatch_conf.py
index cc98fad16693289777a42c6e89c9cb9eb7c9600c..c81153ae197a3b68115698ac50d9e034a148943b 100644
(file)
--- a/
pym/portage/dispatch_conf.py
+++ b/
pym/portage/dispatch_conf.py
@@
-30,7
+30,7
@@
def diffstatusoutput(cmd, file1, file2):
"""
# Use Popen to emulate getstatusoutput(), since getstatusoutput() may
# raise a UnicodeDecodeError which makes the output inaccessible.
- proc = subprocess.Popen(
portage._unicode_encode(cmd % (file1, file2)
),
+ proc = subprocess.Popen(
cmd % (file1, file2
),
stdout=subprocess.PIPE, stderr=subprocess.STDOUT, shell=True)
output = portage._unicode_decode(proc.communicate()[0])
if output and output[-1] == "\n":