summaryrefslogtreecommitdiff
path: root/gitlab/v4/objects/jobs.py
diff options
context:
space:
mode:
authorNejc Habjan <nejc.habjan@siemens.com>2023-02-12 12:30:29 +0100
committerNejc Habjan <nejc.habjan@siemens.com>2023-03-12 09:39:54 +0100
commitab089fbf04d8946a4748723dfd3029a943a43b2f (patch)
tree26a7d0c534abfbeffbe54808ffa3e755db85479e /gitlab/v4/objects/jobs.py
parent07d03dc959128e05d21e8dfd79aa8e916ab5b150 (diff)
downloadgitlab-refactor/response-content-backend.tar.gz
refactor: move response_content into backend coderefactor/response-content-backend
Diffstat (limited to 'gitlab/v4/objects/jobs.py')
-rw-r--r--gitlab/v4/objects/jobs.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/gitlab/v4/objects/jobs.py b/gitlab/v4/objects/jobs.py
index 952c295..02a4ee4 100644
--- a/gitlab/v4/objects/jobs.py
+++ b/gitlab/v4/objects/jobs.py
@@ -4,7 +4,6 @@ import requests
from gitlab import cli
from gitlab import exceptions as exc
-from gitlab import utils
from gitlab.base import RESTManager, RESTObject
from gitlab.mixins import RefreshMixin, RetrieveMixin
from gitlab.types import ArrayAttribute
@@ -149,7 +148,7 @@ class ProjectJob(RefreshMixin, RESTObject):
)
if TYPE_CHECKING:
assert isinstance(result, requests.Response)
- return utils.response_content(
+ return self.manager.gitlab._backend.response_content(
result, streamed, action, chunk_size, iterator=iterator
)
@@ -192,7 +191,7 @@ class ProjectJob(RefreshMixin, RESTObject):
)
if TYPE_CHECKING:
assert isinstance(result, requests.Response)
- return utils.response_content(
+ return self.manager.gitlab._backend.response_content(
result, streamed, action, chunk_size, iterator=iterator
)
@@ -233,7 +232,7 @@ class ProjectJob(RefreshMixin, RESTObject):
)
if TYPE_CHECKING:
assert isinstance(result, requests.Response)
- return_value = utils.response_content(
+ return_value = self.manager.gitlab._backend.response_content(
result, streamed, action, chunk_size, iterator=iterator
)
if TYPE_CHECKING: