]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40094: Add _bootsubprocess._waitstatus_to_exitcode (GH-19264)
authorVictor Stinner <vstinner@python.org>
Tue, 31 Mar 2020 21:45:13 +0000 (23:45 +0200)
committerGitHub <noreply@github.com>
Tue, 31 Mar 2020 21:45:13 +0000 (23:45 +0200)
commit40bfdb1594189f3c0238e5d2098dc3abf114e200
treeff58a82653d8dc1aabbb4a1daee4c59a31fc7d29
parent2c003eff8fef430f1876adf88e466bcfcbd0cc9e
bpo-40094: Add _bootsubprocess._waitstatus_to_exitcode (GH-19264)

* Add _waitstatus_to_exitcode() helper function to _bootsubprocess.
* Enhance check_output() error message if the command fails.

_bootsubprocess no longer handles WIFSTOPPED() case: it now raises a
ValueError.
Lib/_bootsubprocess.py