support/scripts/pkg-stats: decode subprocess output for python3
authorTitouan Christophe <titouan.christophe@railnova.eu>
Sun, 1 Mar 2020 21:18:48 +0000 (22:18 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sat, 7 Mar 2020 14:59:04 +0000 (15:59 +0100)
commitfb05ab22425e8cd8715611b66eadb1a3a5da5fa9
tree7ae40a50fcd8c18512d2869da16a3eb6c732298d
parent1097c0427d3b3f2838d14ee9661226bafc610572
support/scripts/pkg-stats: decode subprocess output for python3

In Python 3, the functions from the subprocess module return bytes
(and no longer strings as in Python 2), which must be decoded for
further text operations.

Now, pkg-stats can be run in Python 3.

Signed-off-by: Titouan Christophe <titouan.christophe@railnova.eu>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
support/scripts/pkg-stats