summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJulien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr>2017-09-03 20:39:02 +0200
committerJulien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr>2017-09-03 20:39:10 +0200
commit5d0b00589c7c61b1eae2f4670b50fa8defea1a70 (patch)
treecbb062cb0c5715e5ddfc22a92fee8b120259d942 /tools
parentbfb62d2cb3e38e857e0944adbe2dd851bf6003a1 (diff)
Fix the Unicode workaround in wscript
The previous code was supposed to ensure VERSIONĀ and PROGRAM_VERSION were *not* Unicode objects since though they are the correct type to represent strings in Python 2, too many libraries have strange issues dealing with them, and UnicodeErrors can creep in with implicit conversions from/to Unicode objects. But in fact it did exactly the contrary since str.decode() always returns Unicode objects, whose type corresponds to the str class in Python 3. Fix it so that in both Python 2 and 3 the constants are eventually instances of str.
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions