diff options
Diffstat (limited to 'doc/data')
-rw-r--r-- | doc/data/messages/l/logging-format-truncated/bad.py | 3 | ||||
-rw-r--r-- | doc/data/messages/l/logging-format-truncated/details.rst | 1 | ||||
-rw-r--r-- | doc/data/messages/l/logging-format-truncated/good.py | 4 |
3 files changed, 6 insertions, 2 deletions
diff --git a/doc/data/messages/l/logging-format-truncated/bad.py b/doc/data/messages/l/logging-format-truncated/bad.py new file mode 100644 index 000000000..9f3f16260 --- /dev/null +++ b/doc/data/messages/l/logging-format-truncated/bad.py @@ -0,0 +1,3 @@ +import logging + +logging.warning("Here is a variable: %", my_var) # [logging-format-truncated] diff --git a/doc/data/messages/l/logging-format-truncated/details.rst b/doc/data/messages/l/logging-format-truncated/details.rst deleted file mode 100644 index ab8204529..000000000 --- a/doc/data/messages/l/logging-format-truncated/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/l/logging-format-truncated/good.py b/doc/data/messages/l/logging-format-truncated/good.py index c40beb573..5dd3889a6 100644 --- a/doc/data/messages/l/logging-format-truncated/good.py +++ b/doc/data/messages/l/logging-format-truncated/good.py @@ -1 +1,3 @@ -# This is a placeholder for correct code for this message. +import logging + +logging.warning("Here is a variable: %s", my_var) |