Mercurial > p > roundup > code
diff roundup/backends/back_postgresql.py @ 7718:3da452f4a3ac
fix: make regexp a raw string
So I don't have to escape the \s sequences.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Sat, 23 Dec 2023 21:59:08 -0500 |
| parents | 2eb976e1de2a |
| children | 3071db43bfb6 |
line wrap: on
line diff
--- a/roundup/backends/back_postgresql.py Thu Dec 21 09:19:08 2023 -0500 +++ b/roundup/backends/back_postgresql.py Sat Dec 23 21:59:08 2023 -0500 @@ -103,7 +103,7 @@ # # with suitable quoting but ... really. search = re.search( - 'FATAL:\s+database\s+"([^"\s]*)"\s+does\s+not\s+exist', + r'FATAL:\s+database\s+"([^"\s]*)"\s+does\s+not\s+exist', message.args[0]) if search: dbname = search.groups()[0]
