From e2aade95a06d06326d8f401e2836b846795aeb80 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 2 Mar 2014 23:20:24 +0100 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/plugins/moc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/plugins/moc.py') diff --git a/src/plugins/moc.py b/src/plugins/moc.py index 560370a..04bda65 100644 --- a/src/plugins/moc.py +++ b/src/plugins/moc.py @@ -58,7 +58,7 @@ class MOC: Constructor ''' self.__info = {} - for line in spawn_read('mocp', '--info').split('\n'): + for line in MOC.__interact('--info').stdout.read().decode('utf-8', 'replace').split('\n'): if ': ' in line: line = line.split(': ') self.__info[line[0]] = ': '.join(line[1:]) @@ -99,7 +99,7 @@ class MOC: @return :Popen The spawned process ''' command = ['mocp'] + list(args) - return subprocess.Popen(command, stderr = sys.stderr, stdout = subprocess.PIPE) + return subprocess.Popen(command, stderr = subprocess.PIPE, stdout = subprocess.PIPE) @staticmethod -- cgit v1.2.3-70-g09d2