We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9054a3b commit 1030e0aCopy full SHA for 1030e0a
gitlab/v4/cli.py
@@ -85,11 +85,7 @@ def do_project_export_download(self):
85
try:
86
project = self.gl.projects.get(int(self.args["project_id"]), lazy=True)
87
data = project.exports.get().download()
88
- if hasattr(sys.stdout, "buffer"):
89
- # python3
90
- sys.stdout.buffer.write(data)
91
- else:
92
- sys.stdout.write(data)
+ sys.stdout.buffer.write(data)
93
94
except Exception as e:
95
cli.die("Impossible to download the export", e)
0 commit comments