summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNejc Habjan <hab.nejc@gmail.com>2021-04-25 14:26:19 +0200
committerNejc Habjan <hab.nejc@gmail.com>2021-04-25 14:31:35 +0200
commit29536423e3e8866eda7118527a49b120fefb4065 (patch)
tree1630bf252e179918e44fa5387cdc2f56911a4ac0
parentcfc42d246a4fc9a9afa9a676efcac0774e909aab (diff)
downloadgitlab-chore/remove-noisy-deprecation-warning.tar.gz
chore(objects): remove noisy deprecation warning for audit eventschore/remove-noisy-deprecation-warning
It's mostly an internal thing anyway and can be removed in 3.0.0
-rw-r--r--gitlab/v4/objects/audit_events.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/gitlab/v4/objects/audit_events.py b/gitlab/v4/objects/audit_events.py
index c99856a..20ea116 100644
--- a/gitlab/v4/objects/audit_events.py
+++ b/gitlab/v4/objects/audit_events.py
@@ -2,8 +2,6 @@
GitLab API:
https://docs.gitlab.com/ee/api/audit_events.html
"""
-import warnings
-
from gitlab.base import RESTManager, RESTObject
from gitlab.mixins import RetrieveMixin
@@ -43,14 +41,6 @@ class GroupAuditEventManager(RetrieveMixin, RESTManager):
class ProjectAuditEvent(RESTObject):
_id_attr = "id"
- def __init_subclass__(self):
- warnings.warn(
- "This class has been renamed to ProjectAuditEvent "
- "and will be removed in a future release.",
- DeprecationWarning,
- 2,
- )
-
class ProjectAuditEventManager(RetrieveMixin, RESTManager):
_path = "/projects/%(project_id)s/audit_events"
@@ -58,14 +48,6 @@ class ProjectAuditEventManager(RetrieveMixin, RESTManager):
_from_parent_attrs = {"project_id": "id"}
_list_filters = ("created_after", "created_before")
- def __init_subclass__(self):
- warnings.warn(
- "This class has been renamed to ProjectAuditEventManager "
- "and will be removed in a future release.",
- DeprecationWarning,
- 2,
- )
-
class ProjectAudit(ProjectAuditEvent):
pass