diff options
| author | Gauvain Pocentek <gauvain@pocentek.net> | 2018-07-09 19:24:42 +0200 |
|---|---|---|
| committer | Gauvain Pocentek <gauvain@pocentek.net> | 2018-07-09 19:24:42 +0200 |
| commit | bbef1f916c8ab65ed7f9717859caf516ebedb335 (patch) | |
| tree | bd2f8a7aa6253a6dbea9c60e039c4ace333ae59a /gitlab/v4/cli.py | |
| parent | bdbec678b1df23fd57b2e3c538e3eeac8d236690 (diff) | |
| download | gitlab-bbef1f916c8ab65ed7f9717859caf516ebedb335.tar.gz | |
[cli] Output: handle bytes in API responses
Closes #548
Diffstat (limited to 'gitlab/v4/cli.py')
| -rw-r--r-- | gitlab/v4/cli.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gitlab/v4/cli.py b/gitlab/v4/cli.py index 880b07d..b786e75 100644 --- a/gitlab/v4/cli.py +++ b/gitlab/v4/cli.py @@ -366,3 +366,6 @@ def run(gl, what, action, args, verbose, output, fields): printer.display(get_dict(data, fields), verbose=verbose, obj=data) elif isinstance(data, six.string_types): print(data) + else: + # We assume we got bytes + print(data.decode()) |
