mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-13 20:27:05 +00:00
deprecated non-raw regex
This commit is contained in:
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user