[Python-checkins] cpython (3.2): Issue #13237: Forward port subprocess module updates and explicitly document

Terry Reedy tjreedy at udel.edu
Tue Nov 8 19:20:18 CET 2011


On 11/8/2011 7:12 AM, nick.coghlan wrote:
> http://hg.python.org/cpython/rev/e929d2a96d9b
> changeset:   73445:e929d2a96d9b
> branch:      3.2
> parent:      73430:4facbfdc7700
> user:        Nick Coghlan<ncoghlan at gmail.com>
> date:        Tue Nov 08 20:49:23 2011 +1000
> summary:
>    Issue #13237: Forward port subprocess module updates and explicitly document UTF-8 encoding assumption when universal_newlines=True
> +
> +>>>  subprocess.check_call("exit 1", shell=True)
> +      Traceback (most recent call last):
> +         ...
> +      subprocess.CalledProcessError: Command 'exit 1' returned non-zero exit status 1
> +
> +   .. versionadded:: 2.5

> +>>>  subprocess.check_output(
> +      ...     "ls non_existent_file; exit 0",
> +      ...     stderr=subprocess.STDOUT,
> +      ...     shell=True)
> +      'ls: non_existent_file: No such file or directory\n'
> +
> +   .. versionadded:: 2.7

The two 2.x added notes should be deleted.



More information about the Python-checkins mailing list