diff options
Diffstat (limited to 'pylint/config/callback_actions.py')
-rw-r--r-- | pylint/config/callback_actions.py | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/pylint/config/callback_actions.py b/pylint/config/callback_actions.py index a4c633464..7c93f2553 100644 --- a/pylint/config/callback_actions.py +++ b/pylint/config/callback_actions.py @@ -1,6 +1,6 @@ # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/main/LICENSE -# Copyright (c) https://github.com/PyCQA/pylint/blob/main/CONTRIBUTORS.txt +# For details: https://github.com/pylint-dev/pylint/blob/main/LICENSE +# Copyright (c) https://github.com/pylint-dev/pylint/blob/main/CONTRIBUTORS.txt # pylint: disable=too-many-arguments, redefined-builtin, duplicate-code @@ -11,7 +11,6 @@ from __future__ import annotations import abc import argparse import sys -import warnings from collections.abc import Callable, Sequence from pathlib import Path from typing import TYPE_CHECKING, Any @@ -265,11 +264,9 @@ class _GenerateRCFileAction(_AccessRunObjectAction): values: str | Sequence[Any] | None, option_string: str | None = "--generate-rcfile", ) -> None: - # TODO: 2.x: Deprecate this after the auto-upgrade functionality of + # TODO: 3.x: Deprecate this after the auto-upgrade functionality of # pylint-config is sufficient. - with warnings.catch_warnings(): - warnings.filterwarnings("ignore", category=DeprecationWarning) - self.run.linter.generate_config(skipsections=("Commands",)) + self.run.linter._generate_config(skipsections=("Commands",)) sys.exit(0) |