more str/buffer

This commit is contained in:
j 2014-09-09 16:35:44 +02:00
parent 8bcc0d6841
commit 536c3cbbbd
1 changed files with 1 additions and 1 deletions

View File

@ -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))