From f6a6aafceb74b496f6f8aaec908cd91b35252fbf Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Tue, 14 May 2019 15:53:54 -0600 Subject: patman: Tidy up a few more unicode conversions Use the new functions in the tools module to handle conversion. Signed-off-by: Simon Glass --- tools/patman/gitutil.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'tools/patman/gitutil.py') diff --git a/tools/patman/gitutil.py b/tools/patman/gitutil.py index fb9e67c0f0d..dce7fa25b64 100644 --- a/tools/patman/gitutil.py +++ b/tools/patman/gitutil.py @@ -412,9 +412,7 @@ def EmailPatches(series, cover_fname, args, dry_run, raise_on_error, cc_fname, if smtp_server: cmd.append('--smtp-server=%s' % smtp_server) if in_reply_to: - if type(in_reply_to) != str: - in_reply_to = in_reply_to.encode('utf-8') - cmd.append('--in-reply-to="%s"' % in_reply_to) + cmd.append('--in-reply-to="%s"' % tools.FromUnicode(in_reply_to)) if thread: cmd.append('--thread') -- cgit v1.2.3