deprecated-module / W4901#
Deprecated module %r
A module marked as deprecated is imported.
import distutils # [deprecated-module] import whatever_you_want # [deprecated-module]
import setuptools import whatever_replacement_you_want
[main] py-version=3.7 deprecated-modules=whatever_you_want
The actual replacement needs to be studied on a case by case basis by reading the deprecation warning or the release notes.
Created by the imports checker.