commit | d8e9bcae6c24f41dd5cfdbdc54f7ff975130edc2 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Tue May 14 15:53:44 2019 -0600 |
committer | Simon Glass <sjg@chromium.org> | Wed Jul 10 16:52:57 2019 -0600 |
tree | a45fd979c1c7809fa4ced00e4870cf0bf1a29df5 | |
parent | 116236f4f304e4d80ade56b812fb2fb77ebeeaf2 [diff] |
patman: Provide a way to get program output in binary mode At present cros_subprocess and the tools library use a string to obtain stdout from a program. This works fine on Python 2. With Python 3 we end up with unicode errors in some cases. Fix this by providing a binary mode, which returns the data as bytes() instead of a string. Signed-off-by: Simon Glass <sjg@chromium.org>