Commit 4a00a66
committed
Fix SyntaxWarning for invalid escape sequence re.sub
Replaced the regular expression '\s+' with a raw string r'\s+' to
resolve the SyntaxWarning: invalid escape sequence '\s'
This ensures proper handling of whitespace matching in both Python 2 and
3 environments.1 parent 7be15b5 commit 4a00a66
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
269 | | - | |
| 269 | + | |
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
| |||
0 commit comments