mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-08-03 06:38:24 +00:00
Fix python style issues reported by flake8
Additionally some python2-only "print" statements are now compatible with python3.
This commit is contained in:
parent
73f885e382
commit
7063330e03
17 changed files with 102 additions and 103 deletions
|
@ -21,7 +21,7 @@ url = 'http://tgftp.nws.noaa.gov/data/observations/metar/decoded/%s.TXT'
|
|||
re_hpa = re.compile(r'Pressure.*\((\d+) hPa\)')
|
||||
|
||||
|
||||
code = sys.argv[0][(sys.argv[0].rfind('_')+1):]
|
||||
code = sys.argv[0][(sys.argv[0].rfind('_') + 1):]
|
||||
if not code:
|
||||
sys.exit(1)
|
||||
elif len(sys.argv) == 2 and sys.argv[1] == "autoconf":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue