@@ -221,12 +221,6 @@ def _create_headers(self, content_type=None, headers={}):
221
221
request_headers ['Content-type' ] = content_type
222
222
return request_headers
223
223
224
- def setToken (self , token ):
225
- """(DEPRECATED) Sets the private token for authentication."""
226
- warnings .warn ("setToken is deprecated, use set_token instead" ,
227
- DeprecationWarning )
228
- self .set_token (token )
229
-
230
224
def set_token (self , token ):
231
225
"""Sets the private token for authentication."""
232
226
self .private_token = token if token else None
@@ -235,22 +229,11 @@ def set_token(self, token):
235
229
elif "PRIVATE-TOKEN" in self .headers :
236
230
del self .headers ["PRIVATE-TOKEN" ]
237
231
238
- def setCredentials (self , email , password ):
239
- """(DEPRECATED) Sets the login and password for authentication."""
240
- warnings .warn ("setCredential is deprecated, use set_credentials "
241
- "instead" ,
242
- DeprecationWarning )
243
- self .set_credentials (email , password )
244
-
245
232
def set_credentials (self , email , password ):
246
233
"""Sets the email/login and password for authentication."""
247
234
self .email = email
248
235
self .password = password
249
236
250
- def rawGet (self , path , content_type = None , ** kwargs ):
251
- warnings .warn ("rawGet is deprecated" , DeprecationWarning )
252
- return self ._raw_get (path , content_type , ** kwargs )
253
-
254
237
def _raw_get (self , path , content_type = None , ** kwargs ):
255
238
url = '%s%s' % (self ._url , path )
256
239
headers = self ._create_headers (content_type )
@@ -265,10 +248,6 @@ def _raw_get(self, path, content_type=None, **kwargs):
265
248
raise GitlabConnectionError (
266
249
"Can't connect to GitLab server (%s)" % self ._url )
267
250
268
- def rawPost (self , path , data = None , content_type = None , ** kwargs ):
269
- warnings .warn ("rawPost is deprecated" , DeprecationWarning )
270
- return self ._raw_post (path , data , content_type , ** kwargs )
271
-
272
251
def _raw_post (self , path , data = None , content_type = None , ** kwargs ):
273
252
url = '%s%s' % (self ._url , path )
274
253
headers = self ._create_headers (content_type )
@@ -281,10 +260,6 @@ def _raw_post(self, path, data=None, content_type=None, **kwargs):
281
260
raise GitlabConnectionError (
282
261
"Can't connect to GitLab server (%s)" % self ._url )
283
262
284
- def rawPut (self , path , data = None , content_type = None , ** kwargs ):
285
- warnings .warn ("rawPut is deprecated" , DeprecationWarning )
286
- return self ._raw_put (path , data , content_type , ** kwargs )
287
-
288
263
def _raw_put (self , path , data = None , content_type = None , ** kwargs ):
289
264
url = '%s%s' % (self ._url , path )
290
265
headers = self ._create_headers (content_type )
@@ -298,10 +273,6 @@ def _raw_put(self, path, data=None, content_type=None, **kwargs):
298
273
raise GitlabConnectionError (
299
274
"Can't connect to GitLab server (%s)" % self ._url )
300
275
301
- def rawDelete (self , path , content_type = None , ** kwargs ):
302
- warnings .warn ("rawDelete is deprecated" , DeprecationWarning )
303
- return self ._raw_delete (path , content_type , ** kwargs )
304
-
305
276
def _raw_delete (self , path , content_type = None , ** kwargs ):
306
277
url = '%s%s' % (self ._url , path )
307
278
headers = self ._create_headers (content_type )
0 commit comments