diff options
author | Max Wittig <max.wittig95@gmail.com> | 2019-07-20 23:16:56 +0200 |
---|---|---|
committer | Max Wittig <max.wittig95@gmail.com> | 2019-07-20 23:16:56 +0200 |
commit | 22b50828d6936054531258f3dc17346275dd0aee (patch) | |
tree | fc8317e91df3f66696972dd0549a56ba1a2cee57 | |
parent | 4a8503db1c55f5a8d1cc66533325d2d832622f85 (diff) | |
download | gitlab-22b50828d6936054531258f3dc17346275dd0aee.tar.gz |
style: format with black again
-rw-r--r-- | gitlab/v4/objects.py | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/gitlab/v4/objects.py b/gitlab/v4/objects.py index c598a9a..f72a145 100644 --- a/gitlab/v4/objects.py +++ b/gitlab/v4/objects.py @@ -4262,10 +4262,18 @@ class Project(SaveMixin, ObjectDeleteMixin, RESTObject): path, post_data={"namespace": to_namespace}, **kwargs ) - @cli.register_custom_action("Project", ("ref_name", "artifact_path", "job")) @exc.on_http_error(exc.GitlabGetError) - def artifact(self, ref_name, artifact_path, job, streamed=False, action=None, chunk_size=1024, **kwargs): + def artifact( + self, + ref_name, + artifact_path, + job, + streamed=False, + action=None, + chunk_size=1024, + **kwargs + ): """Download a single artifact file from a specific tag or branch from within the job’s artifacts archive. Args: @@ -4288,7 +4296,12 @@ class Project(SaveMixin, ObjectDeleteMixin, RESTObject): str: The artifacts if `streamed` is False, None otherwise. """ - path = "/projects/%s/jobs/artifacts/%s/raw/%s?job=%s" % (self.get_id(), ref_name, artifact_path, job) + path = "/projects/%s/jobs/artifacts/%s/raw/%s?job=%s" % ( + self.get_id(), + ref_name, + artifact_path, + job, + ) result = self.manager.gitlab.http_get( path, streamed=streamed, raw=True, **kwargs ) |