diff options
author | Gaurav Juvekar <gauravjuvekar@gmail.com> | 2017-04-14 14:48:20 (GMT) |
---|---|---|
committer | Gaurav Juvekar <gauravjuvekar@gmail.com> | 2017-04-14 14:48:20 (GMT) |
commit | 1cae9523c7cb5b241c1b14021e92d6eccceac7ca (patch) | |
tree | f28296b74c33bf90ee1e91eb141c3635af038d90 /src/script | |
parent | 550fcc144495dfd8569831e2a0996b4e134549f8 (diff) | |
download | SCons-1cae9523c7cb5b241c1b14021e92d6eccceac7ca.zip SCons-1cae9523c7cb5b241c1b14021e92d6eccceac7ca.tar.gz SCons-1cae9523c7cb5b241c1b14021e92d6eccceac7ca.tar.bz2 |
Dirty hack for failing test/sconsign/script/Configure.py
Diffstat (limited to 'src/script')
-rw-r--r-- | src/script/sconsign.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/script/sconsign.py b/src/script/sconsign.py index 8f1722a..2e7a550 100644 --- a/src/script/sconsign.py +++ b/src/script/sconsign.py @@ -241,6 +241,11 @@ def default_mapper(entry, name): val = eval("entry."+name) except: val = None + if sys.version_info.major >= 3 and isinstance(val, bytes): + # This is a dirty hack for py 2/3 compatibility. csig is a bytes object + # in Python3 while Python2 bytes are str. Hence, we decode the csig to a + # Python3 string + val = val.decode() return str(val) def map_action(entry, name): |