summaryrefslogtreecommitdiffstats
path: root/Doc/library/warnings.rst
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2016-07-19 02:50:51 (GMT)
committerMartin Panter <vadmium+py@gmail.com>2016-07-19 02:50:51 (GMT)
commite3d747496edf492c10e329512e1bab573843daf1 (patch)
tree6a7402f45a8af3d6f1c290294155dc7d27b1c672 /Doc/library/warnings.rst
parent36261d7446c0b16d92467144a75ad1620e7d4b97 (diff)
parent221945056da4540506ff2303c07324e60b234e57 (diff)
downloadcpython-e3d747496edf492c10e329512e1bab573843daf1.zip
cpython-e3d747496edf492c10e329512e1bab573843daf1.tar.gz
cpython-e3d747496edf492c10e329512e1bab573843daf1.tar.bz2
Issue #27528: Merge warning doc and test from 3.5
Diffstat (limited to 'Doc/library/warnings.rst')
-rw-r--r--Doc/library/warnings.rst7
1 files changed, 4 insertions, 3 deletions
diff --git a/Doc/library/warnings.rst b/Doc/library/warnings.rst
index fa47965..5a42cc6 100644
--- a/Doc/library/warnings.rst
+++ b/Doc/library/warnings.rst
@@ -141,14 +141,15 @@ the disposition of the match. Each entry is a tuple of the form (*action*,
| | warnings, regardless of location |
+---------------+----------------------------------------------+
-* *message* is a string containing a regular expression that the warning message
- must match (the match is compiled to always be case-insensitive).
+* *message* is a string containing a regular expression that the start of
+ the warning message must match. The expression is compiled to always be
+ case-insensitive.
* *category* is a class (a subclass of :exc:`Warning`) of which the warning
category must be a subclass in order to match.
* *module* is a string containing a regular expression that the module name must
- match (the match is compiled to be case-sensitive).
+ match. The expression is compiled to be case-sensitive.
* *lineno* is an integer that the line number where the warning occurred must
match, or ``0`` to match all line numbers.