Fix rmadison parsing for Python 3

In Python 3, it matters that the output of rmadison must be decoded
before it can be parsed.
This commit is contained in:
Robie Basak 2017-06-30 15:43:46 +01:00
parent 4c66fba4d9
commit a761ccfc72

View File

@ -636,7 +636,7 @@ def rmadison(url, package, suite=None, arch=None):
# pylint bug: http://www.logilab.org/ticket/46273
# pylint: disable=E1103
for line in output.strip().splitlines():
for line in output.decode().strip().splitlines():
# pylint: enable=E1103
pkg, ver, dist, archs = [x.strip() for x in line.split('|')]
comp = 'main'