poblabs / weewx-belchertown

A clean and modern weewx skin with real time streaming updates, forecast data and interactive charts. View it in action at BelchertownWeather.com
https://belchertownweather.com
GNU General Public License v3.0
208 stars 111 forks source link

Fix: Correct unsupported escape sequence in regex string literal #945

Closed skinner12 closed 3 months ago

skinner12 commented 3 months ago

Resolved the unsupported escape sequence warning by escaping the backslash in the regular expression pattern: (?P<distance>[0-9]*\.?[0-9]+) km(?P<rest>.*)$ on line 1680 of file belchertown.py.

Before: "(?P<distance>[0-9]*\.?[0-9]+) km(?P<rest>.*)$"

After: "(?P<distance>[0-9]*\\.?[0-9]+) km(?P<rest>.*)$"