Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit bbef1f9

Browse filesBrowse files
author
Gauvain Pocentek
committed
[cli] Output: handle bytes in API responses
Closes python-gitlab#548
1 parent bdbec67 commit bbef1f9
Copy full SHA for bbef1f9

File tree

Expand file treeCollapse file tree

1 file changed

+3
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-0
lines changed
Open diff view settings
Collapse file

‎gitlab/v4/cli.py‎

Copy file name to clipboardExpand all lines: gitlab/v4/cli.py
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,3 +366,6 @@ def run(gl, what, action, args, verbose, output, fields):
366366
printer.display(get_dict(data, fields), verbose=verbose, obj=data)
367367
elif isinstance(data, six.string_types):
368368
print(data)
369+
else:
370+
# We assume we got bytes
371+
print(data.decode())

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.