summaryrefslogtreecommitdiff
path: root/doc/data/messages/p/preferred-module
diff options
context:
space:
mode:
Diffstat (limited to 'doc/data/messages/p/preferred-module')
-rw-r--r--doc/data/messages/p/preferred-module/bad.py1
-rw-r--r--doc/data/messages/p/preferred-module/details.rst1
-rw-r--r--doc/data/messages/p/preferred-module/good.py2
-rw-r--r--doc/data/messages/p/preferred-module/pylintrc2
4 files changed, 4 insertions, 2 deletions
diff --git a/doc/data/messages/p/preferred-module/bad.py b/doc/data/messages/p/preferred-module/bad.py
new file mode 100644
index 000000000..a047ff36d
--- /dev/null
+++ b/doc/data/messages/p/preferred-module/bad.py
@@ -0,0 +1 @@
+import urllib # [preferred-module]
diff --git a/doc/data/messages/p/preferred-module/details.rst b/doc/data/messages/p/preferred-module/details.rst
deleted file mode 100644
index ab8204529..000000000
--- a/doc/data/messages/p/preferred-module/details.rst
+++ /dev/null
@@ -1 +0,0 @@
-You can help us make the doc better `by contributing <https://github.com/PyCQA/pylint/issues/5953>`_ !
diff --git a/doc/data/messages/p/preferred-module/good.py b/doc/data/messages/p/preferred-module/good.py
index c40beb573..20b15530d 100644
--- a/doc/data/messages/p/preferred-module/good.py
+++ b/doc/data/messages/p/preferred-module/good.py
@@ -1 +1 @@
-# This is a placeholder for correct code for this message.
+import requests
diff --git a/doc/data/messages/p/preferred-module/pylintrc b/doc/data/messages/p/preferred-module/pylintrc
new file mode 100644
index 000000000..00ee49930
--- /dev/null
+++ b/doc/data/messages/p/preferred-module/pylintrc
@@ -0,0 +1,2 @@
+[IMPORTS]
+preferred-modules=urllib:requests,