From 0fffb84a1bc7925fbf862365787ab20e9ab89a0c Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sun, 10 May 2020 14:03:30 -0400 Subject: In the deprecation warning, acknowledge that it's only for projects that still require Python 2 support. --- setuptools/lib2to3_ex.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/setuptools/lib2to3_ex.py b/setuptools/lib2to3_ex.py index 817dce40..6d9b147c 100644 --- a/setuptools/lib2to3_ex.py +++ b/setuptools/lib2to3_ex.py @@ -36,9 +36,10 @@ class Mixin2to3(_Mixin2to3): return warnings.warn( - "2to3 support is deprecated. Please migrate to " - "a single-codebase solution or roll your own " - "conversion process.", + "2to3 support is deprecated. If the project still " + "requires Python 2 support, please migrate to " + "a single-codebase solution or employ an " + "independent conversion process.", DeprecationWarning) log.info("Fixing " + " ".join(files)) self.__build_fixer_names() -- cgit v1.2.3