@@ -1566,7 +1566,7 @@ async def content(self, streamed=False, action=None, chunk_size=1024, **kwargs):
1566
1566
result = await self .manager .gitlab .http_get (
1567
1567
path , streamed = streamed , raw = True , ** kwargs
1568
1568
)
1569
- return utils .response_content (result , streamed , action , chunk_size )
1569
+ return await utils .response_content (result , streamed , action )
1570
1570
1571
1571
1572
1572
class SnippetManager (CRUDMixin , RESTManager ):
@@ -1905,7 +1905,7 @@ async def artifacts(self, streamed=False, action=None, chunk_size=1024, **kwargs
1905
1905
result = await self .manager .gitlab .http_get (
1906
1906
path , streamed = streamed , raw = True , ** kwargs
1907
1907
)
1908
- return utils .response_content (result , streamed , action , chunk_size )
1908
+ return await utils .response_content (result , streamed , action )
1909
1909
1910
1910
@cli .register_custom_action ("ProjectJob" )
1911
1911
@exc .on_http_error (exc .GitlabGetError )
@@ -1935,7 +1935,7 @@ async def artifact(
1935
1935
result = await self .manager .gitlab .http_get (
1936
1936
path , streamed = streamed , raw = True , ** kwargs
1937
1937
)
1938
- return utils .response_content (result , streamed , action , chunk_size )
1938
+ return await utils .response_content (result , streamed , action )
1939
1939
1940
1940
@cli .register_custom_action ("ProjectJob" )
1941
1941
@exc .on_http_error (exc .GitlabGetError )
@@ -1962,7 +1962,7 @@ async def trace(self, streamed=False, action=None, chunk_size=1024, **kwargs):
1962
1962
result = await self .manager .gitlab .http_get (
1963
1963
path , streamed = streamed , raw = True , ** kwargs
1964
1964
)
1965
- return utils .response_content (result , streamed , action , chunk_size )
1965
+ return await utils .response_content (result , streamed , action )
1966
1966
1967
1967
1968
1968
class ProjectJobManager (RetrieveMixin , RESTManager ):
@@ -3260,14 +3260,14 @@ async def delete(self, name, **kwargs):
3260
3260
GitlabAuthenticationError: If authentication is not correct
3261
3261
GitlabDeleteError: If the server cannot perform the request
3262
3262
"""
3263
- self .gitlab .http_delete (self .path , query_data = {"name" : name }, ** kwargs )
3263
+ await self .gitlab .http_delete (self .path , query_data = {"name" : name }, ** kwargs )
3264
3264
3265
3265
3266
3266
class ProjectFile (SaveMixin , ObjectDeleteMixin , RESTObject ):
3267
3267
_id_attr = "file_path"
3268
3268
_short_print_attr = "file_path"
3269
3269
3270
- async def decode (self ):
3270
+ def decode (self ):
3271
3271
"""Returns the decoded content of the file.
3272
3272
3273
3273
Returns:
@@ -3445,10 +3445,10 @@ async def raw(
3445
3445
file_path = file_path .replace ("/" , "%2F" ).replace ("." , "%2E" )
3446
3446
path = "%s/%s/raw" % (self .path , file_path )
3447
3447
query_data = {"ref" : ref }
3448
- result = self .gitlab .http_get (
3448
+ result = await self .gitlab .http_get (
3449
3449
path , query_data = query_data , streamed = streamed , raw = True , ** kwargs
3450
3450
)
3451
- return utils .response_content (result , streamed , action , chunk_size )
3451
+ return await utils .response_content (result , streamed , action )
3452
3452
3453
3453
@cli .register_custom_action ("ProjectFileManager" , ("file_path" , "ref" ))
3454
3454
@exc .on_http_error (exc .GitlabListError )
@@ -3758,7 +3758,7 @@ async def content(self, streamed=False, action=None, chunk_size=1024, **kwargs):
3758
3758
result = await self .manager .gitlab .http_get (
3759
3759
path , streamed = streamed , raw = True , ** kwargs
3760
3760
)
3761
- return utils .response_content (result , streamed , action , chunk_size )
3761
+ return await utils .response_content (result , streamed , action )
3762
3762
3763
3763
3764
3764
class ProjectSnippetManager (CRUDMixin , RESTManager ):
@@ -4078,7 +4078,7 @@ async def download(self, streamed=False, action=None, chunk_size=1024, **kwargs)
4078
4078
result = await self .manager .gitlab .http_get (
4079
4079
path , streamed = streamed , raw = True , ** kwargs
4080
4080
)
4081
- return utils .response_content (result , streamed , action , chunk_size )
4081
+ return await utils .response_content (result , streamed , action )
4082
4082
4083
4083
4084
4084
class ProjectExportManager (GetWithoutIdMixin , CreateMixin , RESTManager ):
@@ -4348,7 +4348,7 @@ async def repository_archive(
4348
4348
result = await self .manager .gitlab .http_get (
4349
4349
path , query_data = query_data , raw = True , streamed = streamed , ** kwargs
4350
4350
)
4351
- return utils .response_content (result , streamed , action , chunk_size )
4351
+ return await utils .response_content (result , streamed , action )
4352
4352
4353
4353
@cli .register_custom_action ("Project" , ("forked_from_id" ,))
4354
4354
@exc .on_http_error (exc .GitlabCreateError )
@@ -4628,7 +4628,7 @@ async def snapshot(
4628
4628
result = await self .manager .gitlab .http_get (
4629
4629
path , streamed = streamed , raw = True , ** kwargs
4630
4630
)
4631
- return utils .response_content (result , streamed , action , chunk_size )
4631
+ return await utils .response_content (result , streamed , action )
4632
4632
4633
4633
@cli .register_custom_action ("Project" , ("scope" , "search" ))
4634
4634
@exc .on_http_error (exc .GitlabSearchError )
0 commit comments