mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-14 17:46:17 +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:', '')
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user