From 0f050a1cf4e71d79fb4402fe7ccbfcb148120234 Mon Sep 17 00:00:00 2001 From: Anderson Bravalheri Date: Tue, 14 Feb 2023 18:01:25 +0000 Subject: Move _deprecation_warning to warnings. The objective is to centralize all the warnings in a single module. --- setuptools/_deprecation_warning.py | 7 ------- setuptools/warnings.py | 7 +++++++ 2 files changed, 7 insertions(+), 7 deletions(-) delete mode 100644 setuptools/_deprecation_warning.py create mode 100644 setuptools/warnings.py (limited to 'setuptools') diff --git a/setuptools/_deprecation_warning.py b/setuptools/_deprecation_warning.py deleted file mode 100644 index 086b64dd..00000000 --- a/setuptools/_deprecation_warning.py +++ /dev/null @@ -1,7 +0,0 @@ -class SetuptoolsDeprecationWarning(Warning): - """ - Base class for warning deprecations in ``setuptools`` - - This class is not derived from ``DeprecationWarning``, and as such is - visible by default. - """ diff --git a/setuptools/warnings.py b/setuptools/warnings.py new file mode 100644 index 00000000..086b64dd --- /dev/null +++ b/setuptools/warnings.py @@ -0,0 +1,7 @@ +class SetuptoolsDeprecationWarning(Warning): + """ + Base class for warning deprecations in ``setuptools`` + + This class is not derived from ``DeprecationWarning``, and as such is + visible by default. + """ -- cgit v1.2.1