Commit 773bac3
committed
Fix regex SyntaxWarning about invalid escape sequences
Use raw strings for regex patterns to avoid Python warnings about
invalid escape sequences like \d and \w.
Fixed warnings like:
SyntaxWarning: invalid escape sequence '\d'
plan = re.search('^(\d+)..(\d+)', string)
Signed-off-by: Joachim Wiberg <[email protected]>1 parent 0589821 commit 773bac3
1 file changed
+6
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| |||
0 commit comments