Skip to content

Commit b298d6d

Browse files
Fixed keywords arguments of subprocess.Popen.__init__ overriding by positional argumens of subprocess.run
1 parent bc26f95 commit b298d6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/subprocess.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ def run(*popenargs,
551551
kwargs['stdout'] = PIPE
552552
kwargs['stderr'] = PIPE
553553

554-
with Popen(*popenargs, **kwargs) as process:
554+
with Popen(popenargs, **kwargs) as process:
555555
try:
556556
stdout, stderr = process.communicate(input, timeout=timeout)
557557
except TimeoutExpired as exc:

0 commit comments

Comments
 (0)