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

Appearance settings

Commit 22b5082

Browse filesBrowse files
committed
style: format with black again
1 parent 4a8503d commit 22b5082
Copy full SHA for 22b5082

File tree

Expand file treeCollapse file tree

1 file changed

+16
-3
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+16
-3
lines changed
Open diff view settings
Collapse file

‎gitlab/v4/objects.py‎

Copy file name to clipboardExpand all lines: gitlab/v4/objects.py
+16-3Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4262,10 +4262,18 @@ def transfer_project(self, to_namespace, **kwargs):
42624262
path, post_data={"namespace": to_namespace}, **kwargs
42634263
)
42644264

4265-
42664265
@cli.register_custom_action("Project", ("ref_name", "artifact_path", "job"))
42674266
@exc.on_http_error(exc.GitlabGetError)
4268-
def artifact(self, ref_name, artifact_path, job, streamed=False, action=None, chunk_size=1024, **kwargs):
4267+
def artifact(
4268+
self,
4269+
ref_name,
4270+
artifact_path,
4271+
job,
4272+
streamed=False,
4273+
action=None,
4274+
chunk_size=1024,
4275+
**kwargs
4276+
):
42694277
"""Download a single artifact file from a specific tag or branch from within the job’s artifacts archive.
42704278
42714279
Args:
@@ -4288,7 +4296,12 @@ def artifact(self, ref_name, artifact_path, job, streamed=False, action=None, ch
42884296
str: The artifacts if `streamed` is False, None otherwise.
42894297
"""
42904298

4291-
path = "/projects/%s/jobs/artifacts/%s/raw/%s?job=%s" % (self.get_id(), ref_name, artifact_path, job)
4299+
path = "/projects/%s/jobs/artifacts/%s/raw/%s?job=%s" % (
4300+
self.get_id(),
4301+
ref_name,
4302+
artifact_path,
4303+
job,
4304+
)
42924305
result = self.manager.gitlab.http_get(
42934306
path, streamed=streamed, raw=True, **kwargs
42944307
)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.