From b150d5882b03a35a9b83707e4ed505446ab06b8a Mon Sep 17 00:00:00 2001 From: Paul Varner Date: Thu, 14 Jul 2011 13:29:09 -0500 Subject: [PATCH] Fix call_program to actually return stdout as string under py3k --- pym/gentoolkit/revdep_rebuild/stuff.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pym/gentoolkit/revdep_rebuild/stuff.py b/pym/gentoolkit/revdep_rebuild/stuff.py index 43be461..a2c317e 100644 --- a/pym/gentoolkit/revdep_rebuild/stuff.py +++ b/pym/gentoolkit/revdep_rebuild/stuff.py @@ -18,9 +18,9 @@ def call_program(args): @param, args: arument list to pass to subprocess @return str ''' - subp = subprocess.Popen(args, stdout=subprocess.PIPE, \ - stderr=subprocess.PIPE) + subp = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.PIPE) stdout, stderr = subp.communicate() + stdout = stdout.decode('utf-8') return str(stdout) -- 2.26.2