summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2020-05-10 14:23:10 -0400
committerJason R. Coombs <jaraco@jaraco.com>2020-05-10 14:23:10 -0400
commita354d7bc1b7737fc1b4a9d238a247364035ab3d8 (patch)
tree065f0b0b2644e0cfe2654165cb91dfea5e8b9c03
parent0fffb84a1bc7925fbf862365787ab20e9ab89a0c (diff)
downloadpython-setuptools-git-feature/deprecate-2to3.tar.gz
Use the SetuptoolsDeprecationWarning to make the warning more visible outside test runners.feature/deprecate-2to3
-rw-r--r--setuptools/lib2to3_ex.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/setuptools/lib2to3_ex.py b/setuptools/lib2to3_ex.py
index 6d9b147c..017f7285 100644
--- a/setuptools/lib2to3_ex.py
+++ b/setuptools/lib2to3_ex.py
@@ -13,6 +13,7 @@ from distutils import log
from lib2to3.refactor import RefactoringTool, get_fixers_from_package
import setuptools
+from ._deprecation_warning import SetuptoolsDeprecationWarning
class DistutilsRefactoringTool(RefactoringTool):
@@ -40,7 +41,7 @@ class Mixin2to3(_Mixin2to3):
"requires Python 2 support, please migrate to "
"a single-codebase solution or employ an "
"independent conversion process.",
- DeprecationWarning)
+ SetuptoolsDeprecationWarning)
log.info("Fixing " + " ".join(files))
self.__build_fixer_names()
self.__exclude_fixers()