1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-09-06 21:28:42 +02:00

Merge pull request #529 from lethliel/python3_fix_bsc1131512

[python3] return value when adding attrs is bytes
This commit is contained in:
Marco Strigl
2019-04-16 15:41:10 +02:00
committed by GitHub

View File

@@ -1034,7 +1034,7 @@ class Osc(cmdln.Cmdln):
d = '<attributes><attribute namespace=\'%s\' name=\'%s\' >%s</attribute></attributes>' % (aname[0], aname[1], values)
url = makeurl(apiurl, attributepath)
for data in streamfile(url, http_POST, data=d):
sys.stdout.write(data)
sys.stdout.write(decode_it(data))
# upload file
if opts.file: