From 5e79c810355fc2df4348581779815f2981493e3f Mon Sep 17 00:00:00 2001 From: Rossen Georgiev Date: Sat, 12 Mar 2022 14:27:29 +0000 Subject: [PATCH] prase: weather: use raw string for regex --- aprslib/parsing/weather.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aprslib/parsing/weather.py b/aprslib/parsing/weather.py index 0502d21..add8db2 100644 --- a/aprslib/parsing/weather.py +++ b/aprslib/parsing/weather.py @@ -63,7 +63,7 @@ def parse_weather_data(body): return (body, parsed) def parse_weather(body): - match = re.match("^(\d{8})c[\. \d]{3}s[\. \d]{3}g[\. \d]{3}t[\. \d]{3}", body) + match = re.match(r"^(\d{8})c[\. \d]{3}s[\. \d]{3}g[\. \d]{3}t[\. \d]{3}", body) if not match: raise ParseError("invalid positionless weather report format")