diff options
author | Gauvain Pocentek <gauvain@pocentek.net> | 2017-11-10 08:07:18 +0100 |
---|---|---|
committer | Gauvain Pocentek <gauvain@pocentek.net> | 2017-11-10 09:08:59 +0100 |
commit | ba6e09ec804bf5cea39282590bb4cb829a836873 (patch) | |
tree | 38a909afb83f2da467152cd69e1cacdc9f1ef632 /gitlab/v3/objects.py | |
parent | c30121b07b1997cc11e2011fc26d45ec53372b5a (diff) | |
download | gitlab-ba6e09ec804bf5cea39282590bb4cb829a836873.tar.gz |
Remove deprecated objects/methods
Diffstat (limited to 'gitlab/v3/objects.py')
-rw-r--r-- | gitlab/v3/objects.py | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/gitlab/v3/objects.py b/gitlab/v3/objects.py index ebe0785..ab81521 100644 --- a/gitlab/v3/objects.py +++ b/gitlab/v3/objects.py @@ -19,7 +19,6 @@ from __future__ import print_function from __future__ import absolute_import import base64 import json -import warnings import six from six.moves import urllib @@ -295,23 +294,6 @@ class BroadcastMessageManager(BaseManager): obj_cls = BroadcastMessage -class Key(GitlabObject): - _url = '/deploy_keys' - canGet = 'from_list' - canCreate = False - canUpdate = False - canDelete = False - - def __init__(self, *args, **kwargs): - warnings.warn("`Key` is deprecated, use `DeployKey` instead", - DeprecationWarning) - super(Key, self).__init__(*args, **kwargs) - - -class KeyManager(BaseManager): - obj_cls = Key - - class DeployKey(GitlabObject): _url = '/deploy_keys' canGet = 'from_list' @@ -2043,11 +2025,6 @@ class Project(GitlabObject): raise_error_from_response(r, GitlabCreateError, 201) return Project(self.gitlab, r.json()) if r.status_code == 201 else self - def archive_(self, **kwargs): - warnings.warn("`archive_()` is deprecated, use `archive()` instead", - DeprecationWarning) - return self.archive(**kwargs) - def unarchive(self, **kwargs): """Unarchive a project. @@ -2063,12 +2040,6 @@ class Project(GitlabObject): raise_error_from_response(r, GitlabCreateError, 201) return Project(self.gitlab, r.json()) if r.status_code == 201 else self - def unarchive_(self, **kwargs): - warnings.warn("`unarchive_()` is deprecated, " - "use `unarchive()` instead", - DeprecationWarning) - return self.unarchive(**kwargs) - def share(self, group_id, group_access, **kwargs): """Share the project with a group. |