Skip to content

Commit b1d6d39

Browse files
committed
subprocess: Work around type checker limitation
Keyword argument is not accepted since it is used together with *args. See also issue #153.
1 parent f9e243b commit b1d6d39

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python-lib/subprocess.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,8 @@ def check_output(*popenargs, **kwargs):
505505
"""
506506
if 'stdout' in kwargs:
507507
raise ValueError('stdout argument not allowed, it will be overridden.')
508-
process = Popen(*popenargs, stdout=PIPE, **kwargs)
508+
kwargs['stdout'] = PIPE
509+
process = Popen(*popenargs, **kwargs)
509510
output, unused_err = process.communicate()
510511
retcode = process.poll()
511512
if retcode:

0 commit comments

Comments
 (0)