diff options
author | Simon Glass | 2019-10-31 07:42:51 -0600 |
---|---|---|
committer | Simon Glass | 2019-11-04 18:15:32 -0700 |
commit | 272cd85deb714a9c9c1c30cb900c70a157dfa2e1 (patch) | |
tree | 098b089612396dae0135877542b65495b8116eba /tools/patman/series.py | |
parent | 3b3e3c0f6c261a8c9f989d437dc261ba84467d4f (diff) |
patman: Use unicode for file I/O
At present patman test fail in some environments which don't use utf-8
as the default file encoding. Add this explicitly.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/patman/series.py')
-rw-r--r-- | tools/patman/series.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/patman/series.py b/tools/patman/series.py index d667d9b6d61..02a1113ad01 100644 --- a/tools/patman/series.py +++ b/tools/patman/series.py @@ -223,7 +223,7 @@ class Series(dict): col = terminal.Color() # Look for commit tags (of the form 'xxx:' at the start of the subject) fname = '/tmp/patman.%d' % os.getpid() - fd = open(fname, 'w') + fd = open(fname, 'w', encoding='utf-8') all_ccs = [] for commit in self.commits: cc = [] |