Skip to content

Commit 2928211

Browse files
committed
Remove superfluous shell=True arguments from subprocess.Popen
1 parent 8d7a8bc commit 2928211

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

pytensor/link/c/cmodule.py

-2
Original file line numberDiff line numberDiff line change
@@ -2111,7 +2111,6 @@ def get_lines(cmd: list[str], parse: bool = True) -> list[str] | None:
21112111
stdout=subprocess.PIPE,
21122112
stderr=subprocess.PIPE,
21132113
stdin=subprocess.PIPE,
2114-
shell=True,
21152114
)
21162115
# For mingw64 with GCC >= 4.7, passing os.devnull
21172116
# as stdin (which is the default) results in the process
@@ -2786,7 +2785,6 @@ def get_cxx_library_dirs():
27862785
stdout=subprocess.PIPE,
27872786
stderr=subprocess.PIPE,
27882787
stdin=subprocess.PIPE,
2789-
shell=True,
27902788
)
27912789
(stdout, stderr) = p.communicate(input=b"")
27922790
if p.returncode != 0:

0 commit comments

Comments
 (0)