From: Gregory P. Smith Date: Wed, 20 Mar 2013 06:36:31 +0000 (-0700) Subject: clarifiy the documentation for issue17285. see also commit X-Git-Tag: v3.3.1rc1~21 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f16455aa4ab046d91b675b51127d2b66c46081d4;p=thirdparty%2FPython%2Fcpython.git clarifiy the documentation for issue17285. see also commit ee30400efceb which updated the docstring. --- diff --git a/Doc/library/subprocess.rst b/Doc/library/subprocess.rst index b09c6424c853..bf98e0d127e4 100644 --- a/Doc/library/subprocess.rst +++ b/Doc/library/subprocess.rst @@ -118,7 +118,7 @@ use cases, the underlying :class:`Popen` interface can be used directly. .. function:: check_output(args, *, stdin=None, stderr=None, shell=False, universal_newlines=False, timeout=None) - Run command with arguments and return its output as a byte string. + Run command with arguments and return its output. If the return code was non-zero it raises a :exc:`CalledProcessError`. The :exc:`CalledProcessError` object will have the return code in the