Skip to content

Commit 0733ec6

Browse files
committed
fix(cli): write binary data to stdout buffer
1 parent 1030e0a commit 0733ec6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

gitlab/v4/cli.py

+2
Original file line numberDiff line numberDiff line change
@@ -436,5 +436,7 @@ def run(gl, what, action, args, verbose, output, fields):
436436
printer.display(get_dict(data, fields), verbose=verbose, obj=data)
437437
elif isinstance(data, str):
438438
print(data)
439+
elif isinstance(data, bytes):
440+
sys.stdout.buffer.write(data)
439441
elif hasattr(data, "decode"):
440442
print(data.decode())

0 commit comments

Comments
 (0)