mirror of
https://github.com/openSUSE/osc.git
synced 2025-08-23 22:58:53 +02:00
Merge pull request #578 from lethliel/python3_fix_set_bugowner
[python3] osc maintainer -s now works with python3
This commit is contained in:
@@ -6978,7 +6978,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)
|
||||
|
Reference in New Issue
Block a user