[Mesa-dev] [PATCH mesa] git_sha1_gen: fix output on python3

Eric Engestrom eric.engestrom at imgtec.com
Wed Aug 2 14:10:53 UTC 2017


String handling has changed on python3.

Before this patch:
After:

(No change on python2, it always looked ok)

Cc: Jose Fonseca <jfonseca at vmware.com>
Fixes: b99dcbfeb344390fea99 "build: Convert git_sha1_gen script to Python."
Signed-off-by: Eric Engestrom <eric.engestrom at imgtec.com>
---
 bin/git_sha1_gen.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/git_sha1_gen.py b/bin/git_sha1_gen.py
index e26d3a3f76..e1018cdc47 100755
--- a/bin/git_sha1_gen.py
+++ b/bin/git_sha1_gen.py
@@ -12,7 +12,7 @@
         'rev-parse',
         '--short=10',
         'HEAD',
-    ], stderr=open(os.devnull, 'w'))
+    ], stderr=open(os.devnull, 'w')).decode("utf-8")
 except:
     # don't print anything if it fails
     pass
-- 
Cheers,
  Eric



More information about the mesa-dev mailing list