diff options
| author | Max Wittig <max.wittig.ch@gmail.com> | 2021-04-25 16:31:10 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-25 16:31:10 +0200 |
| commit | 0a0fcaf27fe18867d2b4860badb52cafdac555cb (patch) | |
| tree | 1630bf252e179918e44fa5387cdc2f56911a4ac0 /gitlab | |
| parent | cfc42d246a4fc9a9afa9a676efcac0774e909aab (diff) | |
| parent | 29536423e3e8866eda7118527a49b120fefb4065 (diff) | |
| download | gitlab-0a0fcaf27fe18867d2b4860badb52cafdac555cb.tar.gz | |
Merge pull request #1414 from python-gitlab/chore/remove-noisy-deprecation-warning
chore(objects): remove noisy deprecation warning for audit events
Diffstat (limited to 'gitlab')
| -rw-r--r-- | gitlab/v4/objects/audit_events.py | 18 |
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 |
