1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 14:56:14 +01: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()) action.tgt_project.encode(), action.tgt_package.encode())
diff += submit_action_diff(apiurl, action) diff += submit_action_diff(apiurl, action)
diff += b'\n\n' diff += b'\n\n'
run_pager(decode_it(diff), tmp_suffix='') run_pager(diff, tmp_suffix='')
# checkout # checkout
elif cmd == 'checkout' or cmd == 'co': elif cmd == 'checkout' or cmd == 'co':