1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 18:41:03 +00:00

Fix multiple python code issues (detected by flake8)

This commit is contained in:
Lars Kruse 2019-08-13 05:01:44 +02:00
parent 7fed3b9765
commit be192b5226
3 changed files with 3 additions and 3 deletions

View file

@ -29,7 +29,7 @@ if len(sys.argv) > 1:
print('%s.label %s' % (name, label))
sys.exit(0)
re_num = re.compile('(\d+)')
re_num = re.compile(r'(\d+)')
sockstat = open('/proc/net/sockstat').read()
numbers = re_num.findall(sockstat)