From a7b32c36f872284e69404adaeb01c74a3be0efba Mon Sep 17 00:00:00 2001 From: Nathan Olson Date: Fri, 1 Aug 2025 10:22:01 -0700 Subject: [PATCH] fix syntax warnings --- opendm/photo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opendm/photo.py b/opendm/photo.py index 7144d069..ac6c6cf0 100644 --- a/opendm/photo.py +++ b/opendm/photo.py @@ -493,7 +493,7 @@ class ODM_Photo: # for some reason, they don't store band information in EXIFs if self.camera_make.lower() == 'aerovironment' and \ self.camera_model.lower() == 'quantix': - matches = re.match("IMG_(\d+)_(\w+)\.\w+", self.filename, re.IGNORECASE) + matches = re.match(r"IMG_(\d+)_(\w+)\.\w+", self.filename, re.IGNORECASE) if matches: band_aliases = { 'GRN': 'Green', @@ -544,7 +544,7 @@ class ODM_Photo: focal = self.float_value(tags["EXIF FocalLength"]) if focal is None and "@aux:Lens" in xtags: lens = self.get_xmp_tag(xtags, ["@aux:Lens"]) - matches = re.search('([\d\.]+)mm', str(lens)) + matches = re.search(r'([\d\.]+)mm', str(lens)) if matches: focal = float(matches.group(1))