Skip to content

Commit 1030e0a

Browse files
committed
chore(cli): remove python2 code
1 parent 9054a3b commit 1030e0a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

gitlab/v4/cli.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,7 @@ def do_project_export_download(self):
8585
try:
8686
project = self.gl.projects.get(int(self.args["project_id"]), lazy=True)
8787
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)
88+
sys.stdout.buffer.write(data)
9389

9490
except Exception as e:
9591
cli.die("Impossible to download the export", e)

0 commit comments

Comments
 (0)