1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-26 09:56:13 +01:00

fix decoding for osc cat

use sys.stdout.buffer.write() to print encoded data
correctly
This commit is contained in:
lethliel 2019-09-18 10:49:39 +02:00
parent 1e4e7edad5
commit d1d45f4618

View File

@ -8426,7 +8426,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
if isinstance(data, str):
sys.stdout.write(data)
else:
sys.stdout.write(decode_it(data))
sys.stdout.buffer.write(data)
# helper function to download a file from a specific revision