Commit 8f13671
authored
Update ansitowin32.py for syntax warning on re string literal
Revised this fix for invalid \ sequences in literal string. Prior attempt marked the ANSI_RE as a raw string, but this suppresses the \033 code for the escape character in the literal string. Instead, escape the \d in the regular expression as \\d in the literal string.1 parent 2bb87c0 commit 8f13671
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
0 commit comments