diff options
author | Philip Sargent <philip.sargent@klebos.com> | 2022-11-18 20:42:03 +0000 |
---|---|---|
committer | Philip Sargent <philip.sargent@klebos.com> | 2022-11-18 20:42:03 +0000 |
commit | 4514eda311451aefd684c587300774501ef20afb (patch) | |
tree | e69f86d549e887c8ce500de57517b86e2bf33e91 /parsers/survex.py | |
parent | 725c5ad0cde2dc610781ab033c723f8de9e996b7 (diff) | |
download | troggle-4514eda311451aefd684c587300774501ef20afb.tar.gz troggle-4514eda311451aefd684c587300774501ef20afb.tar.bz2 troggle-4514eda311451aefd684c587300774501ef20afb.zip |
make compatible with python 3.11 as well as 3.10
Diffstat (limited to 'parsers/survex.py')
-rw-r--r-- | parsers/survex.py | 2 |
1 files changed, 2 insertions, 0 deletions
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$') |