Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit1030e0a

Browse files
committed
chore(cli): remove python2 code
1 parent9054a3b commit1030e0a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

‎gitlab/v4/cli.py‎

Lines changed: 1 addition & 5 deletions
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-
ifhasattr(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
exceptExceptionase:
9591
cli.die("Impossible to download the export",e)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp