]> git.cworth.org Git - turbot/commit
Use a raw string for a regular expression
authorCarl Worth <cworth@cworth.org>
Tue, 29 Sep 2020 13:20:59 +0000 (06:20 -0700)
committerCarl Worth <cworth@cworth.org>
Tue, 29 Sep 2020 13:20:59 +0000 (06:20 -0700)
commitfe74596a6ae856672759986387004e21ff7f9482
treeb608873d7c47ff6df125fe78d2a7461d1b47c1ed
parent10b308577f29751a418bdcd95148facb2d52862e
Use a raw string for a regular expression

Previously, the string had an unrecognized escape sequence ('\*').
With a non-raw string we could have doubled the backslash, but it's
much cleaner to just use a raw string instead, (so that backslashes
are used for regular-expression escaping, and not also for string
escaping).
turbot.py