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:
parent
1e4e7edad5
commit
d1d45f4618
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user