mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-15 10:06:16 +01:00
osc maintainer -s now works with python3
data is a bytes-like object now and needs to be joined into a bytes-like object.
This commit is contained in:
parent
d5c91d6a73
commit
d85c901f88
@ -6977,7 +6977,7 @@ def setBugowner(apiurl, prj, pac, user=None, group=None):
|
|||||||
group=user.replace('group:', '')
|
group=user.replace('group:', '')
|
||||||
user=None
|
user=None
|
||||||
if data:
|
if data:
|
||||||
root = ET.fromstring(''.join(data))
|
root = ET.fromstring(b''.join(data))
|
||||||
for group_element in root.getiterator('group'):
|
for group_element in root.getiterator('group'):
|
||||||
if group_element.get('role') == "bugowner":
|
if group_element.get('role') == "bugowner":
|
||||||
root.remove(group_element)
|
root.remove(group_element)
|
||||||
|
Loading…
Reference in New Issue
Block a user