.. _deprecated-module: deprecated-module / W4901 ========================= **Message emitted:** ``Deprecated module %r`` **Description:** *A module marked as deprecated is imported.* **Problematic code:** .. literalinclude:: /data/messages/d/deprecated-module/bad.py :language: python **Correct code:** .. literalinclude:: /data/messages/d/deprecated-module/good.py :language: python **Configuration file:** .. literalinclude:: /data/messages/d/deprecated-module/pylintrc :language: ini **Additional details:** 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.