1
0
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:
Marco Strigl
2019-06-11 12:53:20 +02:00
committed by GitHub

View File

@@ -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)