File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -335,7 +335,7 @@ expressions will often be written in Python code using this raw string notation.
335335
336336In addition, special escape sequences that are valid in regular expressions,
337337but not valid as Python string literals, now result in a
338- :exc: `DeprecationWarning ` and will eventually become a :exc: `SyntaxError `,
338+ :exc: `SyntaxWarning ` and will eventually become a :exc: `SyntaxError `,
339339which means the sequences will be invalid if raw string notation or escaping
340340the backslashes isn't used.
341341
@@ -473,7 +473,7 @@ Two pattern methods return all of the matches for a pattern.
473473The ``r `` prefix, making the literal a raw string literal, is needed in this
474474example because escape sequences in a normal "cooked" string literal that are
475475not recognized by Python, as opposed to regular expressions, now result in a
476- :exc: `DeprecationWarning ` and will eventually become a :exc: `SyntaxError `. See
476+ :exc: `SyntaxWarning ` and will eventually become a :exc: `SyntaxError `. See
477477:ref: `the-backslash-plague `.
478478
479479:meth: `~re.Pattern.findall ` has to create the entire list before it can be returned as the
You can’t perform that action at this time.
0 commit comments