Skip to content

Commit 154ab15

Browse files
committed
Remove Project.blob() function (use Project.get_blob() instead)
Limiting functions without "get_" to those passing either no args or just the key of the object to get
1 parent c5e6643 commit 154ab15

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

gitlab3/_api_definition.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -163,14 +163,11 @@ class GetBlobAction(ExtraActionDefinition):
163163
url = '/repository/commits/:sha/blob'
164164
method = _HTTP_GET
165165
url_params = [
166-
'sha',
166+
'sha_or_ref_name',
167167
]
168168
required_params = [
169169
'filepath',
170170
]
171-
class BlobAction(GetBlobAction):
172-
"""Alias for get_blob()"""
173-
pass
174171
class ProtectBranchAction(ExtraActionDefinition):
175172
"""gl.Project.protect_branch()"""
176173
url = '/repository/branches/:branch/protect'
@@ -212,7 +209,6 @@ def wrapped(self, branch):
212209
ForkFromAction,
213210
DeleteForkAction,
214211
GetBlobAction,
215-
BlobAction,
216212
ProtectBranchAction,
217213
UnprotectBranchAction,
218214
]

0 commit comments

Comments
 (0)