diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2023-03-08 21:39:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-08 21:39:23 +0100 |
commit | 358264aaf622505f6d2e8bc699618382981a078c (patch) | |
tree | 0395141b74b097cd0f55b1b97d26b9e2a7d20175 /pylint/lint | |
parent | 3318aa0c5877abd9e9d2361f8a21b8880b7a052d (diff) | |
download | pylint-git-358264aaf622505f6d2e8bc699618382981a078c.tar.gz |
[__implements__] Remove everything related to the rejected PEP245 (#8404)
Diffstat (limited to 'pylint/lint')
-rw-r--r-- | pylint/lint/pylinter.py | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/pylint/lint/pylinter.py b/pylint/lint/pylinter.py index b35867eae..143ad5c08 100644 --- a/pylint/lint/pylinter.py +++ b/pylint/lint/pylinter.py @@ -957,41 +957,9 @@ class PyLinter( tokencheckers = [ c for c in _checkers if isinstance(c, checkers.BaseTokenChecker) ] - # TODO: 3.0: Remove deprecated for-loop - for c in _checkers: - with warnings.catch_warnings(): - warnings.filterwarnings("ignore", category=DeprecationWarning) - if ( - interfaces.implements(c, interfaces.ITokenChecker) - and c not in tokencheckers - and c is not self - ): - tokencheckers.append(c) # type: ignore[arg-type] # pragma: no cover - warnings.warn( # pragma: no cover - "Checkers should subclass BaseTokenChecker " - "instead of using the __implements__ mechanism. Use of __implements__ " - "will no longer be supported in pylint 3.0", - DeprecationWarning, - ) rawcheckers = [ c for c in _checkers if isinstance(c, checkers.BaseRawFileChecker) ] - # TODO: 3.0: Remove deprecated if-statement - for c in _checkers: - with warnings.catch_warnings(): - warnings.filterwarnings("ignore", category=DeprecationWarning) - if ( - interfaces.implements(c, interfaces.IRawChecker) - and c not in rawcheckers - ): - rawcheckers.append(c) # type: ignore[arg-type] # pragma: no cover - warnings.warn( # pragma: no cover - "Checkers should subclass BaseRawFileChecker " - "instead of using the __implements__ mechanism. Use of __implements__ " - "will no longer be supported in pylint 3.0", - DeprecationWarning, - ) - # notify global begin for checker in _checkers: checker.open() walker.add_checker(checker) |