python: make string parsing and returning Python 3 compatible
commit6158dc987b9ca08f3857af95a1c09b4e32bb2659
authorTobias Grosser <tobias@grosser.es>
Thu, 4 May 2017 15:02:13 +0000 (4 17:02 +0200)
committerSven Verdoolaege <sven.verdoolaege@gmail.com>
Fri, 5 May 2017 12:08:37 +0000 (5 14:08 +0200)
treeb1d409528ea6de63ce284421eb833b9fabe2d2b1
parentd2ff2d428889164b5eeaf3f8eb2f57be61ca0d60
python: make string parsing and returning Python 3 compatible

Python 3 requires explicit conversion from C strings (a.k.a. byte arrays)
to Python strings to ensure that the encoding choices are explicit.
Python 2 does not require these conversions, but also works without
problems if the Python 3 conversions are in the source code. Hence, this
commit changes string handling to use Python 3 style conversions.

For string conversion we need to choose an encoding type. As isl inputs
are all expected to be ASCII, we choose ascii as encoding.

Signed-off-by: Tobias Grosser <tobias@grosser.es>
Signed-off-by: Sven Verdoolaege <sven.verdoolaege@gmail.com>
interface/python.cc