1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-09-21 17:56:19 +02:00

Merge branch 'fix_issue_602_osc_api' of https://github.com/lethliel/osc

Do not decode the api result in do_api.
This commit is contained in:
Marcus Huewe 2019-07-19 12:56:44 +02:00
commit 23c8f19868

View File

@ -7993,7 +7993,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
data=opts.data,
file=opts.file,
headers=opts.headers)
out = decode_it(r.read())
out = r.read()
if opts.edit:
text = edit_text(out)
@ -8001,9 +8001,12 @@ Please submit there instead, or use --nodevelproject to force direct submission.
url,
data=text,
headers=opts.headers)
out = decode_it(r.read())
out = r.read()
sys.stdout.write(out)
if isinstance(out, str):
sys.stdout.write(out)
else:
sys.stdout.buffer.write(out)
@cmdln.option('-b', '--bugowner-only', action='store_true',