提交 5fc74486 authored 作者: Ben Mares's avatar Ben Mares 提交者: Michael Osthege

Remove superfluous `shell=True` arguments from subprocess.Popen

上级 c7c33fbc
...@@ -2111,7 +2111,6 @@ class GCC_compiler(Compiler): ...@@ -2111,7 +2111,6 @@ class GCC_compiler(Compiler):
stdout=subprocess.PIPE, stdout=subprocess.PIPE,
stderr=subprocess.PIPE, stderr=subprocess.PIPE,
stdin=subprocess.PIPE, stdin=subprocess.PIPE,
shell=True,
) )
# For mingw64 with GCC >= 4.7, passing os.devnull # For mingw64 with GCC >= 4.7, passing os.devnull
# as stdin (which is the default) results in the process # as stdin (which is the default) results in the process
...@@ -2786,7 +2785,6 @@ def default_blas_ldflags() -> str: ...@@ -2786,7 +2785,6 @@ def default_blas_ldflags() -> str:
stdout=subprocess.PIPE, stdout=subprocess.PIPE,
stderr=subprocess.PIPE, stderr=subprocess.PIPE,
stdin=subprocess.PIPE, stdin=subprocess.PIPE,
shell=True,
) )
(stdout, stderr) = p.communicate(input=b"") (stdout, stderr) = p.communicate(input=b"")
if p.returncode != 0: if p.returncode != 0:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论