Skip to content
Snippets Groups Projects
Commit 131504bb authored by Administrator's avatar Administrator
Browse files

Use text=true in subprocess

parent 33ffcb3e
No related branches found
No related tags found
No related merge requests found
......@@ -66,7 +66,7 @@ PREFIX_USP = 'usp_'
def cmd_open(cmd, bufsize=-1, env=None):
inst = subprocess.Popen(cmd, shell=False, bufsize=bufsize,
stdin=subprocess.PIPE, stdout=subprocess.PIPE,
stderr=subprocess.PIPE, close_fds=True)
stderr=subprocess.PIPE, close_fds=True, text=True)
return inst
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment