diff --git a/Doc/library/subprocess.rst b/Doc/library/subprocess.rst index 2a31213560c92d..189b0818276879 100644 --- a/Doc/library/subprocess.rst +++ b/Doc/library/subprocess.rst @@ -1326,7 +1326,7 @@ calls these functions. ... "ls non_existent_file; exit 0", ... stderr=subprocess.STDOUT, ... shell=True) - 'ls: non_existent_file: No such file or directory\n' + b'ls: non_existent_file: No such file or directory\n' .. versionadded:: 3.1