From 40827a051a2af7c4fdc829c6ff76971b7c37af34 Mon Sep 17 00:00:00 2001 From: Lars Kruse Date: Tue, 25 Aug 2020 16:58:50 +0200 Subject: [PATCH] Python plugins: fix style issues --- plugins/prosody/prosody_ | 2 +- plugins/router/arris-tg3442 | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/prosody/prosody_ b/plugins/prosody/prosody_ index 9f7c1821..4a3fab53 100755 --- a/plugins/prosody/prosody_ +++ b/plugins/prosody/prosody_ @@ -105,7 +105,7 @@ def main(): sys.exit(0) else: - client_presence_re = re.compile("[\]] (.*?)\(\d+\)") + client_presence_re = re.compile(r"[\]] (.*?)\(\d+\)") telnet = telnetlib.Telnet(host, port) telnet.write(b"c2s:show()\n") telnet_response = telnet.read_until(b"clients", 5) diff --git a/plugins/router/arris-tg3442 b/plugins/router/arris-tg3442 index a232ef29..604807e1 100755 --- a/plugins/router/arris-tg3442 +++ b/plugins/router/arris-tg3442 @@ -243,10 +243,10 @@ if __name__ == "__main__": # graph config print(f"multigraph docsis_{g['name']}") print(f"graph_title {g['title']}") - print(f"graph_category network") + print("graph_category network") print(f"graph_vlabel {g['vlabel']}") print(f"graph_info {g['info']}") - print(f"graph_scale no") + print("graph_scale no") # channels for c in g['data']: