1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-27 18:26:15 +01: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
commit fc8e6f8695
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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: