File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -193,7 +193,10 @@ underlying :class:`Popen` interface can be used directly.
193
193
.. attribute :: output
194
194
195
195
Output of the child process if it was captured by :func: `run ` or
196
- :func: `check_output `. Otherwise, ``None ``.
196
+ :func: `check_output `. Otherwise, ``None ``. This is always
197
+ :class: `bytes ` when any output was captured regardless of the
198
+ ``text=True `` setting. It may remain ``None `` instead of ``b'' ``
199
+ when no output was observed.
197
200
198
201
.. attribute :: stdout
199
202
@@ -202,7 +205,9 @@ underlying :class:`Popen` interface can be used directly.
202
205
.. attribute :: stderr
203
206
204
207
Stderr output of the child process if it was captured by :func: `run `.
205
- Otherwise, ``None ``.
208
+ Otherwise, ``None ``. This is always :class: `bytes ` when stderr output
209
+ was captured regardless of the ``text=True `` setting. It may remain
210
+ ``None `` instead of ``b'' `` when no stderr output was observed.
206
211
207
212
.. versionadded :: 3.3
208
213
You can’t perform that action at this time.
0 commit comments