@@ -221,12 +221,6 @@ def _create_headers(self, content_type=None, headers={}):
221221 request_headers ['Content-type' ] = content_type
222222 return request_headers
223223
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-
230224 def set_token (self , token ):
231225 """Sets the private token for authentication."""
232226 self .private_token = token if token else None
@@ -235,22 +229,11 @@ def set_token(self, token):
235229 elif "PRIVATE-TOKEN" in self .headers :
236230 del self .headers ["PRIVATE-TOKEN" ]
237231
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-
245232 def set_credentials (self , email , password ):
246233 """Sets the email/login and password for authentication."""
247234 self .email = email
248235 self .password = password
249236
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-
254237 def _raw_get (self , path , content_type = None , ** kwargs ):
255238 url = '%s%s' % (self ._url , path )
256239 headers = self ._create_headers (content_type )
@@ -265,10 +248,6 @@ def _raw_get(self, path, content_type=None, **kwargs):
265248 raise GitlabConnectionError (
266249 "Can't connect to GitLab server (%s)" % self ._url )
267250
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-
272251 def _raw_post (self , path , data = None , content_type = None , ** kwargs ):
273252 url = '%s%s' % (self ._url , path )
274253 headers = self ._create_headers (content_type )
@@ -281,10 +260,6 @@ def _raw_post(self, path, data=None, content_type=None, **kwargs):
281260 raise GitlabConnectionError (
282261 "Can't connect to GitLab server (%s)" % self ._url )
283262
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-
288263 def _raw_put (self , path , data = None , content_type = None , ** kwargs ):
289264 url = '%s%s' % (self ._url , path )
290265 headers = self ._create_headers (content_type )
@@ -298,10 +273,6 @@ def _raw_put(self, path, data=None, content_type=None, **kwargs):
298273 raise GitlabConnectionError (
299274 "Can't connect to GitLab server (%s)" % self ._url )
300275
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-
305276 def _raw_delete (self , path , content_type = None , ** kwargs ):
306277 url = '%s%s' % (self ._url , path )
307278 headers = self ._create_headers (content_type )
0 commit comments