From 4514eda311451aefd684c587300774501ef20afb Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Fri, 18 Nov 2022 20:42:03 +0000 Subject: make compatible with python 3.11 as well as 3.10 --- parsers/survex.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'parsers/survex.py') diff --git a/parsers/survex.py b/parsers/survex.py index 60c0330..3754035 100644 --- a/parsers/survex.py +++ b/parsers/survex.py @@ -118,6 +118,8 @@ class LoadingSurvex(): other survex files. A 'scanswallet' is what we today call a "survey scans folder" or a "wallet". """ + # python regex flags (?i) means case-insentitive, (?s) means . matches newline too + # see https://docs.python.org/3/library/re.html rx_begin = re.compile(r'(?i)begin') rx_end = re.compile(r'(?i)end$') rx_title = re.compile(r'(?i)title$') -- cgit v1.2.3