summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaurav Juvekar <gauravjuvekar@gmail.com>2017-04-14 20:18:20 +0530
committerGaurav Juvekar <gauravjuvekar@gmail.com>2017-04-14 20:18:20 +0530
commit1cae9523c7cb5b241c1b14021e92d6eccceac7ca (patch)
treef28296b74c33bf90ee1e91eb141c3635af038d90
parent550fcc144495dfd8569831e2a0996b4e134549f8 (diff)
downloadscons-git-1cae9523c7cb5b241c1b14021e92d6eccceac7ca.tar.gz
Dirty hack for failing test/sconsign/script/Configure.py
-rw-r--r--src/script/sconsign.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/script/sconsign.py b/src/script/sconsign.py
index 8f1722afd..2e7a5506a 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):