more str/buffer
This commit is contained in:
parent
8bcc0d6841
commit
536c3cbbbd
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||||
|
|
Loading…
Reference in a new issue