diff options
author | wm4 <wm4@nowhere> | 2014-01-21 21:41:53 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-01-31 19:05:20 +0100 |
commit | 4a3975bf7e81fcba6fda6345da496a26d7280ddf (patch) | |
tree | a4a903571aeca7913c8c5381944c2ffeac40006e | |
parent | a064143899afd5e6ea751c915348d1755e24c330 (diff) | |
download | mpv-4a3975bf7e81fcba6fda6345da496a26d7280ddf.tar.bz2 mpv-4a3975bf7e81fcba6fda6345da496a26d7280ddf.tar.xz |
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.
-rw-r--r-- | waftools/generators/headers.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |