From 4a3975bf7e81fcba6fda6345da496a26d7280ddf Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 21 Jan 2014 21:41:53 +0100 Subject: waf: try to fix unicode/byte string messup Some mpv builds identify with e.g. "mpv b'0.3.3' ". The version looks like str() was called on a Python byte string. I couldn't reproduce it on my machine (I tried with both Python 2 and 3), so I'm not exactly sure what's going on here, but I'm hoping this commit does fix it. --- waftools/generators/headers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/waftools/generators/headers.py b/waftools/generators/headers.py index 13f124a2dd..828d61fd57 100644 --- a/waftools/generators/headers.py +++ b/waftools/generators/headers.py @@ -6,7 +6,7 @@ def __get_version__(ctx): cwd=ctx.srcnode.abspath()) process.wait() (version, err) = process.communicate() - return version.strip() + return version.strip().decode("utf-8") def __get_build_date__(): import time -- cgit v1.2.3