mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-05-14 18:31:29 +00:00
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:
parent
4c66fba4d9
commit
a761ccfc72
@ -636,7 +636,7 @@ def rmadison(url, package, suite=None, arch=None):
|
|||||||
|
|
||||||
# pylint bug: http://www.logilab.org/ticket/46273
|
# pylint bug: http://www.logilab.org/ticket/46273
|
||||||
# pylint: disable=E1103
|
# pylint: disable=E1103
|
||||||
for line in output.strip().splitlines():
|
for line in output.decode().strip().splitlines():
|
||||||
# pylint: enable=E1103
|
# pylint: enable=E1103
|
||||||
pkg, ver, dist, archs = [x.strip() for x in line.split('|')]
|
pkg, ver, dist, archs = [x.strip() for x in line.split('|')]
|
||||||
comp = 'main'
|
comp = 'main'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user