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)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 2 Mar 2020 22:35:26 +0000 (23:35 +0100)
commit304b141a9733fe44ccf5a045cff4aa9d46c7bbed
tree343de7868903d806387f7e2598eab67a140c5ec5
parent70b2411cee1ea4ae01b75b62abd7dfbe03b547f1
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