diff options
author | Nejc Habjan <hab.nejc@gmail.com> | 2020-09-20 23:17:36 +0200 |
---|---|---|
committer | Nejc Habjan <nejc.habjan@siemens.com> | 2020-10-12 18:29:05 +0200 |
commit | 1030e0a7e13c4ec3fdc48b9010e9892833850db9 (patch) | |
tree | df66c0a14681234380424c515cf14b147b18028e /gitlab/v4/cli.py | |
parent | 9054a3be492091f3a323914ee24b682f993c9fcb (diff) | |
download | gitlab-1030e0a7e13c4ec3fdc48b9010e9892833850db9.tar.gz |
chore(cli): remove python2 code
Diffstat (limited to 'gitlab/v4/cli.py')
-rw-r--r-- | gitlab/v4/cli.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/gitlab/v4/cli.py b/gitlab/v4/cli.py index 51416f1..fe5ab80 100644 --- a/gitlab/v4/cli.py +++ b/gitlab/v4/cli.py @@ -85,11 +85,7 @@ class GitlabCLI(object): try: project = self.gl.projects.get(int(self.args["project_id"]), lazy=True) data = project.exports.get().download() - if hasattr(sys.stdout, "buffer"): - # python3 - sys.stdout.buffer.write(data) - else: - sys.stdout.write(data) + sys.stdout.buffer.write(data) except Exception as e: cli.die("Impossible to download the export", e) |