From 6f674a628900ff3b2599bd7ccd424c7e777bac75 Mon Sep 17 00:00:00 2001 From: lethliel Date: Wed, 18 Sep 2019 11:26:16 +0200 Subject: [PATCH] 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. --- osc/commandline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osc/commandline.py b/osc/commandline.py index 5efd1d5a..dd4b3a33 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -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':