diff options
author | Martin Panter <vadmium+py@gmail.com> | 2016-07-19 02:50:51 (GMT) |
---|---|---|
committer | Martin Panter <vadmium+py@gmail.com> | 2016-07-19 02:50:51 (GMT) |
commit | e3d747496edf492c10e329512e1bab573843daf1 (patch) | |
tree | 6a7402f45a8af3d6f1c290294155dc7d27b1c672 /Doc | |
parent | 36261d7446c0b16d92467144a75ad1620e7d4b97 (diff) | |
parent | 221945056da4540506ff2303c07324e60b234e57 (diff) | |
download | cpython-e3d747496edf492c10e329512e1bab573843daf1.zip cpython-e3d747496edf492c10e329512e1bab573843daf1.tar.gz cpython-e3d747496edf492c10e329512e1bab573843daf1.tar.bz2 |
Issue #27528: Merge warning doc and test from 3.5
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/warnings.rst | 7 |
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. |