FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix(cli): write binary data to stdout buffer · python-gitlab/python-gitlab@0733ec6 · GitHub

Repository navigation

Commit 0733ec6

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

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎gitlab/v4/cli.py‎

Lines changed: 2 additions & 0 deletions
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)

Back | FazBrowse Home | New Git URL