DescriptionMake check_output of subprocess2 compatible with Python's subprocess.
According to Python's doc (
https://docs.python.org/2/library/subprocess.html#subprocess.check_output
):
if check_output raises exception CalledProcessError, the exception object
should contain stdout data as `output` attribute. Before this commit,
subprocess2.CalledProcessError had `output` always None, and used `stdout`
instead. This commit fixes this problem storing the same data in both `stdout`
and `output`.
BUG=NONE
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=292036
Patch Set 1 #
Total comments: 4
Patch Set 2 : Missing period. #Patch Set 3 : Simplified per iannucci suggestion. #
Total comments: 1
Patch Set 4 : compatibility typo #Messages
Total messages: 12 (4 generated)
|