summaryrefslogtreecommitdiffstats
path: root/pym/portage/sets/shell.py
diff options
context:
space:
mode:
Diffstat (limited to 'pym/portage/sets/shell.py')
-rw-r--r--pym/portage/sets/shell.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pym/portage/sets/shell.py b/pym/portage/sets/shell.py
index 25ccb03c7..658353ef2 100644
--- a/pym/portage/sets/shell.py
+++ b/pym/portage/sets/shell.py
@@ -3,8 +3,9 @@
# $Id$
import subprocess
-import os
+from portage import os
+from portage import _unicode_decode
from portage.sets.base import PackageSet
from portage.sets import SetConfigError
@@ -35,8 +36,7 @@ class CommandOutputSet(PackageSet):
pipe = subprocess.Popen(self._command, stdout=subprocess.PIPE, shell=True)
stdout, stderr = pipe.communicate()
if pipe.wait() == os.EX_OK:
- self._setAtoms(unicode(stdout,
- encoding='utf_8', errors='replace').splitlines())
+ self._setAtoms(_unicode_decode(stdout).splitlines())
def singleBuilder(self, options, settings, trees):
if not "command" in options: