From d85c901f8894eb59ba4f44c1889f68135747099d Mon Sep 17 00:00:00 2001 From: lethliel Date: Tue, 11 Jun 2019 12:00:42 +0200 Subject: [PATCH] osc maintainer -s now works with python3 data is a bytes-like object now and needs to be joined into a bytes-like object. --- osc/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osc/core.py b/osc/core.py index bceb76a1..db123786 100644 --- a/osc/core.py +++ b/osc/core.py @@ -6977,7 +6977,7 @@ def setBugowner(apiurl, prj, pac, user=None, group=None): group=user.replace('group:', '') user=None if data: - root = ET.fromstring(''.join(data)) + root = ET.fromstring(b''.join(data)) for group_element in root.getiterator('group'): if group_element.get('role') == "bugowner": root.remove(group_element)