From f16455aa4ab046d91b675b51127d2b66c46081d4 Mon Sep 17 00:00:00 2001 From: "Gregory P. Smith" Date: Tue, 19 Mar 2013 23:36:31 -0700 Subject: clarifiy the documentation for issue17285. see also commit ee30400efceb which updated the docstring. --- Doc/library/subprocess.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/subprocess.rst b/Doc/library/subprocess.rst index b09c642..bf98e0d 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 -- cgit v0.12