1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-09-20 17:26:15 +02:00

do not decode diff before passing it to run_pager

run_pager will take care of the bytes-like object and
will directly write it to sys.stdout.buffer.write() or
NamedTemporaryFile.
This commit is contained in:
lethliel 2019-09-18 11:26:16 +02:00
parent 1e4e7edad5
commit 6f674a6289

View File

@ -2510,7 +2510,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
action.tgt_project.encode(), action.tgt_package.encode())
diff += submit_action_diff(apiurl, action)
diff += b'\n\n'
run_pager(decode_it(diff), tmp_suffix='')
run_pager(diff, tmp_suffix='')
# checkout
elif cmd == 'checkout' or cmd == 'co':