@cryptotaxi247 / netdata-1 / commits / 6b53759e4

import full re to avoid codacy "problem"

Christopher Cox committed Apr 24, 2017 at 23:39 UTC 6b53759e405d738697609cea2de7701e5a05b9a1
1 file changed +2 -2
python.d/samba.chart.py
+2 -2
@@ -16,7 +16,7 @@
16 # (like find and notify... good examples).
17
18 from base import ExecutableService
19 -from re import compile
19 +import re
20
21 # default module values (can be overridden per job in `config`)
22 update_every = 5
@@ -91,7 +91,7 @@ class Service(ExecutableService):
91 ExecutableService.__init__(self, configuration=configuration, name=name)
92 self.order = ORDER
93 self.definitions = CHARTS
94 - self.rgx_smb2 = compile(r'(smb2_[^:]+|syscall_.*file_bytes):\s+(\d+)')
94 + self.rgx_smb2 = re.compile(r'(smb2_[^:]+|syscall_.*file_bytes):\s+(\d+)')
95
96 def check(self):
97 sudo_binary, smbstatus_binary = self.find_binary('sudo'), self.find_binary('smbstatus')