GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Merge pull request #1414 from python-gitlab/chore/remove-noisy-deprec… · python-gitlab/python-gitlab@0a0fcaf

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • gitlab/v4/objects
    • audit_events.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎gitlab/v4/objects/audit_events.py‎

Copy file name to clipboardExpand all lines: gitlab/v4/objects/audit_events.py
-18Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
GitLab API:
33
https://docs.gitlab.com/ee/api/audit_events.html
44
"""
5-
import warnings
6-
75
from gitlab.base import RESTManager, RESTObject
86
from gitlab.mixins import RetrieveMixin
97

@@ -43,29 +41,13 @@ class GroupAuditEventManager(RetrieveMixin, RESTManager):
4341
class ProjectAuditEvent(RESTObject):
4442
_id_attr = "id"
4543

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-
5444

5545
class ProjectAuditEventManager(RetrieveMixin, RESTManager):
5646
_path = "/projects/%(project_id)s/audit_events"
5747
_obj_cls = ProjectAuditEvent
5848
_from_parent_attrs = {"project_id": "id"}
5949
_list_filters = ("created_after", "created_before")
6050

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-
6951

7052
class ProjectAudit(ProjectAuditEvent):
7153
pass

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.