Skip to content

Commit

Permalink
Use raw string for regex.
Browse files Browse the repository at this point in the history
  • Loading branch information
danielballan committed Jan 16, 2025
1 parent 4a29b3b commit 78ce77d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion databroker/headersource/sqlite.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def __init__(self, dirpath):
def reconnect(self):
for fn in os.listdir(self._dirpath):
# Cache connections to every sqlite file.
match = re.match('([0-9a-z-]+)\.sqlite', fn)
match = re.match(r'([0-9a-z-]+)\.sqlite', fn)
if match is None:
# skip unrecognized file
continue
Expand Down

0 comments on commit 78ce77d

Please sign in to comment.