diff options
author | Gauvain Pocentek <gauvain.pocentek@objectif-libre.com> | 2015-12-31 08:31:00 +0100 |
---|---|---|
committer | Gauvain Pocentek <gauvain.pocentek@objectif-libre.com> | 2015-12-31 08:31:00 +0100 |
commit | 118b2985249b3b152064af57e03231f1e1c59622 (patch) | |
tree | e46a1483b7410eedec1316bb7459053711eb8825 /gitlab | |
parent | 7c38ef6f2f089c1fbf9fa0ade249bb460c96ee9d (diff) | |
download | gitlab-118b2985249b3b152064af57e03231f1e1c59622.tar.gz |
remove deprecated methods
Diffstat (limited to 'gitlab')
-rw-r--r-- | gitlab/__init__.py | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/gitlab/__init__.py b/gitlab/__init__.py index ebd7648..9e9fac7 100644 --- a/gitlab/__init__.py +++ b/gitlab/__init__.py @@ -221,12 +221,6 @@ class Gitlab(object): request_headers['Content-type'] = content_type return request_headers - def setToken(self, token): - """(DEPRECATED) Sets the private token for authentication.""" - warnings.warn("setToken is deprecated, use set_token instead", - DeprecationWarning) - self.set_token(token) - def set_token(self, token): """Sets the private token for authentication.""" self.private_token = token if token else None @@ -235,22 +229,11 @@ class Gitlab(object): elif "PRIVATE-TOKEN" in self.headers: del self.headers["PRIVATE-TOKEN"] - def setCredentials(self, email, password): - """(DEPRECATED) Sets the login and password for authentication.""" - warnings.warn("setCredential is deprecated, use set_credentials " - "instead", - DeprecationWarning) - self.set_credentials(email, password) - def set_credentials(self, email, password): """Sets the email/login and password for authentication.""" self.email = email self.password = password - def rawGet(self, path, content_type=None, **kwargs): - warnings.warn("rawGet is deprecated", DeprecationWarning) - return self._raw_get(path, content_type, **kwargs) - def _raw_get(self, path, content_type=None, **kwargs): url = '%s%s' % (self._url, path) headers = self._create_headers(content_type) @@ -265,10 +248,6 @@ class Gitlab(object): raise GitlabConnectionError( "Can't connect to GitLab server (%s)" % self._url) - def rawPost(self, path, data=None, content_type=None, **kwargs): - warnings.warn("rawPost is deprecated", DeprecationWarning) - return self._raw_post(path, data, content_type, **kwargs) - def _raw_post(self, path, data=None, content_type=None, **kwargs): url = '%s%s' % (self._url, path) headers = self._create_headers(content_type) @@ -281,10 +260,6 @@ class Gitlab(object): raise GitlabConnectionError( "Can't connect to GitLab server (%s)" % self._url) - def rawPut(self, path, data=None, content_type=None, **kwargs): - warnings.warn("rawPut is deprecated", DeprecationWarning) - return self._raw_put(path, data, content_type, **kwargs) - def _raw_put(self, path, data=None, content_type=None, **kwargs): url = '%s%s' % (self._url, path) headers = self._create_headers(content_type) @@ -298,10 +273,6 @@ class Gitlab(object): raise GitlabConnectionError( "Can't connect to GitLab server (%s)" % self._url) - def rawDelete(self, path, content_type=None, **kwargs): - warnings.warn("rawDelete is deprecated", DeprecationWarning) - return self._raw_delete(path, content_type, **kwargs) - def _raw_delete(self, path, content_type=None, **kwargs): url = '%s%s' % (self._url, path) headers = self._create_headers(content_type) |