mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-08-11 16:34:34 +00:00
Plugins weather_*: specify regular expressions as raw strings
New versions of flake8 already complain about the non-raw nature of the strings (respectively the improper escaping in the regular expression).
This commit is contained in:
parent
e5abdeeb12
commit
ebdbf1a92c
3 changed files with 6 additions and 6 deletions
|
@ -18,7 +18,7 @@ import re
|
|||
|
||||
url = 'http://tgftp.nws.noaa.gov/data/observations/metar/decoded/%s.TXT'
|
||||
|
||||
re_hpa = re.compile('Pressure.*\((\d+) hPa\)')
|
||||
re_hpa = re.compile(r'Pressure.*\((\d+) hPa\)')
|
||||
|
||||
|
||||
code = sys.argv[0][(sys.argv[0].rfind('_')+1):]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue