Files
xen/tools
Olaf Hering a27976a108 tools/python: fix Python3.4 TypeError in format string
Using the first element of a tuple for a format specifier fails with
python3.4 as included in SLE12:
    b = b"string/%x" % (i, )
TypeError: unsupported operand type(s) for %: 'bytes' and 'tuple'

It happens to work with python 2.7 and 3.6.
To support older Py3, format as strings and explicitly encode as ASCII.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
2021-07-06 10:49:58 +01:00
..
2020-11-05 16:48:55 +01:00
2021-06-15 20:50:32 +01:00
2021-02-01 15:18:36 +00:00
2021-02-10 15:30:59 +00:00
2021-01-18 18:58:20 +00:00