diff options
author | Simon Glass <sjg@chromium.org> | 2019-05-11 21:46:39 +0300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2019-07-11 01:52:43 +0300 |
commit | b1793a531e5934ea5453b7e24495e2fcddd9c493 (patch) | |
tree | ec7dcc4d8e6e8ad74aaebce9880b19b230ecef95 /tools/patman/gitutil.py | |
parent | ef8b7e045ec744dce385cac4b1438c9be6e2bbc8 (diff) | |
download | u-boot-b1793a531e5934ea5453b7e24495e2fcddd9c493.tar.xz |
patman: Update cros_subprocess to use bytes
At present this function uses lists and strings. This does not work so
well with Python 3, and testing against '' does not work for a bytearray.
Update the code to fix these issues.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/patman/gitutil.py')
-rw-r--r-- | tools/patman/gitutil.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/patman/gitutil.py b/tools/patman/gitutil.py index 9905bb0bbd..7650b51bd5 100644 --- a/tools/patman/gitutil.py +++ b/tools/patman/gitutil.py @@ -326,6 +326,8 @@ def BuildEmailList(in_list, tag=None, alias=None, raise_on_error=True): result = [] for item in raw: if not item in result: + if type(item) == unicode: + item = item.encode('utf-8') result.append(item) if tag: return ['%s %s%s%s' % (tag, quote, email, quote) for email in result] |