Skip to content

Commit

Permalink
mavwp: mark re.match pattern as regex string
Browse files Browse the repository at this point in the history
/home/pbarker/.local/lib/python3.12/site-packages/pymavlink-2.4.41-py3.12.egg/pymavlink/mavwp.py:505: SyntaxWarning: invalid escape sequence '\s'
  not re.match("[-0-9.]+\s+[-0-9.]+", version_line)):
  • Loading branch information
peterbarker committed Sep 16, 2024
1 parent feb81c4 commit ae3173e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mavwp.py
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ def load(self, filename):
version_line = get_first_line_from_file(filename)

if (version_line is None or
not re.match("[-0-9.]+\s+[-0-9.]+", version_line)):
not re.match(r"[-0-9.]+\s+[-0-9.]+", version_line)):
return super(MissionItemProtocol_Fence, self).load(filename)

# shamelessly copy-and-pasted from traditional loader, below
Expand Down

0 comments on commit ae3173e

Please sign in to comment.