File tree Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Original file line number Diff line number Diff line change 2
2
GitLab API:
3
3
https://docs.gitlab.com/ee/api/audit_events.html
4
4
"""
5
- import warnings
6
-
7
5
from gitlab .base import RESTManager , RESTObject
8
6
from gitlab .mixins import RetrieveMixin
9
7
@@ -43,29 +41,13 @@ class GroupAuditEventManager(RetrieveMixin, RESTManager):
43
41
class ProjectAuditEvent (RESTObject ):
44
42
_id_attr = "id"
45
43
46
- def __init_subclass__ (self ):
47
- warnings .warn (
48
- "This class has been renamed to ProjectAuditEvent "
49
- "and will be removed in a future release." ,
50
- DeprecationWarning ,
51
- 2 ,
52
- )
53
-
54
44
55
45
class ProjectAuditEventManager (RetrieveMixin , RESTManager ):
56
46
_path = "/projects/%(project_id)s/audit_events"
57
47
_obj_cls = ProjectAuditEvent
58
48
_from_parent_attrs = {"project_id" : "id" }
59
49
_list_filters = ("created_after" , "created_before" )
60
50
61
- def __init_subclass__ (self ):
62
- warnings .warn (
63
- "This class has been renamed to ProjectAuditEventManager "
64
- "and will be removed in a future release." ,
65
- DeprecationWarning ,
66
- 2 ,
67
- )
68
-
69
51
70
52
class ProjectAudit (ProjectAuditEvent ):
71
53
pass
You can’t perform that action at this time.
0 commit comments