From 536c3cbbbd2bcb3a05a593be43401ad91af426a8 Mon Sep 17 00:00:00 2001 From: j Date: Tue, 9 Sep 2014 16:35:44 +0200 Subject: [PATCH] more str/buffer --- oml/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oml/commands.py b/oml/commands.py index befbc1c..31d4464 100644 --- a/oml/commands.py +++ b/oml/commands.py @@ -19,7 +19,7 @@ def run(*cmd): def get(*cmd): p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, close_fds=True) stdout, error = p.communicate() - return stdout + return stdout.decode() def r(*cmd): print(' '.join(cmd))