summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oe/patch.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/lib/oe/patch.py b/meta/lib/oe/patch.py
index a25fd527f6..4a0d3f7149 100644
--- a/meta/lib/oe/patch.py
+++ b/meta/lib/oe/patch.py
@@ -292,7 +292,10 @@ class GitApplyTree(PatchTree):
292 def decodeAuthor(line): 292 def decodeAuthor(line):
293 from email.header import decode_header 293 from email.header import decode_header
294 authorval = line.split(':', 1)[1].strip().replace('"', '') 294 authorval = line.split(':', 1)[1].strip().replace('"', '')
295 return decode_header(authorval)[0][0] 295 result = decode_header(authorval)[0][0]
296 if hasattr(result, 'decode'):
297 result = result.decode('utf-8')
298 return result
296 299
297 @staticmethod 300 @staticmethod
298 def interpretPatchHeader(headerlines): 301 def interpretPatchHeader(headerlines):