File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -29,9 +29,9 @@ a literal backslash, one might have to write ``'\\\\'`` as the pattern
2929string, because the regular expression must be ``\\ ``, and each
3030backslash must be expressed as ``\\ `` inside a regular Python string
3131literal. Also, please note that any invalid escape sequences in Python's
32- usage of the backslash in string literals now generate a DeprecationWarning
33- and in the future this will become a SyntaxError. This behaviour will happen
34- even if it is a valid escape sequence for a regular expression.
32+ usage of the backslash in string literals now generate a :exc: ` DeprecationWarning `
33+ and in the future this will become a :exc: ` SyntaxError ` . This behaviour
34+ will happen even if it is a valid escape sequence for a regular expression.
3535
3636The solution is to use Python's raw string notation for regular expression
3737patterns; backslashes are not handled in any special way in a string literal
You can’t perform that action at this time.
0 commit comments