Skip to content

Commit 5e79c81

Browse files
prase: weather: use raw string for regex
1 parent c9f4b4f commit 5e79c81

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

aprslib/parsing/weather.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def parse_weather_data(body):
6363
return (body, parsed)
6464

6565
def parse_weather(body):
66-
match = re.match("^(\d{8})c[\. \d]{3}s[\. \d]{3}g[\. \d]{3}t[\. \d]{3}", body)
66+
match = re.match(r"^(\d{8})c[\. \d]{3}s[\. \d]{3}g[\. \d]{3}t[\. \d]{3}", body)
6767
if not match:
6868
raise ParseError("invalid positionless weather report format")
6969

0 commit comments

Comments
 (0)