more str/buffer

This commit is contained in:
j 2014-09-09 16:35:44 +02:00
parent 8bcc0d6841
commit 536c3cbbbd

View file

@ -19,7 +19,7 @@ def run(*cmd):
def get(*cmd): def get(*cmd):
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, close_fds=True) p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, close_fds=True)
stdout, error = p.communicate() stdout, error = p.communicate()
return stdout return stdout.decode()
def r(*cmd): def r(*cmd):
print(' '.join(cmd)) print(' '.join(cmd))