Skip to content

Commit 98b81fb

Browse files
committed
Remove superfluous shell=True arguments from subprocess.Popen
1 parent d30380d commit 98b81fb

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

pytensor/link/c/cmodule.py

Lines changed: 0 additions & 2 deletions
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
@@ -2784,7 +2783,6 @@ def get_cxx_library_dirs():
27842783
stdout=subprocess.PIPE,
27852784
stderr=subprocess.PIPE,
27862785
stdin=subprocess.PIPE,
2787-
shell=True,
27882786
)
27892787
(stdout, stderr) = p.communicate(input=b"")
27902788
if p.returncode != 0:

0 commit comments

Comments
 (0)