mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-06 19:30:40 +00:00
be 3.6 compatible with subprocess popen
This commit is contained in:
@@ -34,7 +34,7 @@ def run_test(logfd, path):
|
|||||||
proc = subprocess.Popen(path, shell=False,
|
proc = subprocess.Popen(path, shell=False,
|
||||||
stdout=subprocess.PIPE,
|
stdout=subprocess.PIPE,
|
||||||
stderr=subprocess.STDOUT,
|
stderr=subprocess.STDOUT,
|
||||||
text=True)
|
universal_newlines=True)
|
||||||
out, _ = proc.communicate()
|
out, _ = proc.communicate()
|
||||||
ret = proc.returncode == 0
|
ret = proc.returncode == 0
|
||||||
reason = 'returncode'
|
reason = 'returncode'
|
||||||
|
|||||||
Reference in New Issue
Block a user