Skip to content

Commit 1f05c65

Browse files
committed
fix: make regexp a raw string
So I don't have to escape the \s sequences.
1 parent f52ad10 commit 1f05c65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roundup/backends/back_postgresql.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def get_database_name(config):
103103
#
104104
# with suitable quoting but ... really.
105105
search = re.search(
106-
'FATAL:\s+database\s+"([^"\s]*)"\s+does\s+not\s+exist',
106+
r'FATAL:\s+database\s+"([^"\s]*)"\s+does\s+not\s+exist',
107107
message.args[0])
108108
if search:
109109
dbname = search.groups()[0]

0 commit comments

Comments
 (0)