mirror of
https://github.com/openSUSE/osc.git
synced 2024-09-20 01:06:17 +02:00
[python3] fix decoding in addGitSource
open the file with mode 'w' instead of 'wb'. The 'b' is not needed. Neither in python2 nor in python3. Fixes github issue https://github.com/openSUSE/osc/issues/507
This commit is contained in:
parent
393290bfe5
commit
0d55ddc1b3
@ -7058,7 +7058,7 @@ def addGitSource(url):
|
||||
|
||||
# for pretty output
|
||||
xmlindent(s)
|
||||
f = open(service_file, 'wb')
|
||||
f = open(service_file, 'w')
|
||||
f.write(ET.tostring(s, encoding=ET_ENCODING))
|
||||
f.close()
|
||||
if addfile:
|
||||
|
Loading…
Reference in New Issue
Block a user