@@ -159,9 +159,10 @@ the disposition of the match. Each entry is a tuple of the form (*action*,
159159
160160* *message * is a string containing a regular expression that the start of
161161 the warning message must match, case-insensitively. In :option: `-W ` and
162- :envvar: `PYTHONWARNINGS `, if *message * is at least two characters long and
163- starts and ends with a forward slash (``/ ``), it specifies a regular
164- expression as above; otherwise it is a literal string that the start of the
162+ :envvar: `PYTHONWARNINGS `, if *message * starts and ends with a forward
163+ slash (``/ ``), it specifies a regular expression as above (a single ``/ ``
164+ on its own is treated as a literal string); otherwise it is a literal
165+ string that the start of the
165166 warning message must match (case-insensitively), ignoring any whitespace at
166167 the start or end of *message *.
167168
@@ -170,9 +171,10 @@ the disposition of the match. Each entry is a tuple of the form (*action*,
170171
171172* *module * is a string containing a regular expression that the start of the
172173 fully qualified module name must match, case-sensitively. In :option: `-W ` and
173- :envvar: `PYTHONWARNINGS `, if *module * is at least two characters long and
174- starts and ends with a forward slash (``/ ``), it specifies a regular
175- expression as above; otherwise it is a literal string that the
174+ :envvar: `PYTHONWARNINGS `, if *module * starts and ends with a forward
175+ slash (``/ ``), it specifies a regular expression as above (a single ``/ ``
176+ on its own is treated as a literal string); otherwise it is a literal
177+ string that the
176178 fully qualified module name must be equal to (case-sensitively), ignoring any
177179 whitespace at the start or end of *module *.
178180
0 commit comments