Fix the Unicode workaround in wscript
authorJulien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr>
Sun, 3 Sep 2017 18:39:02 +0000 (20:39 +0200)
committerJulien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr>
Sun, 3 Sep 2017 18:39:10 +0000 (20:39 +0200)
commit5d0b00589c7c61b1eae2f4670b50fa8defea1a70
treecbb062cb0c5715e5ddfc22a92fee8b120259d942
parentbfb62d2cb3e38e857e0944adbe2dd851bf6003a1
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.
wscript