diff options
author | Philip Sargent <philip.sargent@klebos.com> | 2021-04-13 00:18:30 +0100 |
---|---|---|
committer | Philip Sargent <philip.sargent@klebos.com> | 2021-04-13 00:18:30 +0100 |
commit | 304bbd230a1b801069cfce259c6ad0f25d48116c (patch) | |
tree | 2e3a87bee5c3505696f1c4d0e6e13d247550de7b /parsers/logbooks.py | |
parent | ca1df94be55f321b581a6384679ff50bcb15346e (diff) | |
download | troggle-304bbd230a1b801069cfce259c6ad0f25d48116c.tar.gz troggle-304bbd230a1b801069cfce259c6ad0f25d48116c.tar.bz2 troggle-304bbd230a1b801069cfce259c6ad0f25d48116c.zip |
deprecated non-raw regex
Diffstat (limited to 'parsers/logbooks.py')
-rw-r--r-- | parsers/logbooks.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/parsers/logbooks.py b/parsers/logbooks.py index 7a334d6..b6a326c 100644 --- a/parsers/logbooks.py +++ b/parsers/logbooks.py @@ -281,7 +281,7 @@ def Parseloghtml01(year, expedition, txt): logbook_entry_count += 1 try: tripentry = year + "." + str(logbook_entry_count) - s = re.match("(?s)\s*(?:<p>)?(.*?)</?p>(.*)$(?i)", trippara) + s = re.match(r"(?s)\s*(?:<p>)?(.*?)</?p>(.*)$(?i)", trippara) if not s: message = " ! - Skipping logentry on failure to parse header: " + tripentry + trippara[:300] + "..." DataIssue.objects.create(parser='logbooks', message=message) @@ -351,7 +351,7 @@ def Parseloghtml03(year, expedition, txt): for trippara in tripparas: logbook_entry_count += 1 - s = re.match("(?s)\s*<p>(.*?)</p>(.*)$", trippara) + s = re.match(r"(?s)\s*<p>(.*?)</p>(.*)$", trippara) #assert s, trippara if not ( s ) : message = " ! - Skipping logentry on failure to parse Parseloghtml03: {} {} {}...".format(tripentry,s,trippara[:300]) |