From 86692d70214441b5e5d40c3c8f24c38d8ba188c3 Mon Sep 17 00:00:00 2001 From: Lars Kruse Date: Tue, 27 Mar 2018 04:56:30 +0200 Subject: [PATCH] Plugin sockstat-via-procfs: fix style issues --- plugins/network/sockstat-via-procfs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/network/sockstat-via-procfs b/plugins/network/sockstat-via-procfs index 4c875aa2..88afe093 100755 --- a/plugins/network/sockstat-via-procfs +++ b/plugins/network/sockstat-via-procfs @@ -20,13 +20,13 @@ fields = ( if len(sys.argv) > 1: arg = sys.argv[1] if arg == 'autoconfig': - print 'yes' + print('yes') sys.exit(0) if arg == 'config': - print 'graph_title sockstat' - print 'graph_category network' + print('graph_title sockstat') + print('graph_category network') for name, label in fields: - print '%s.label %s' % (name, label) + print('%s.label %s' % (name, label)) sys.exit(0) re_num = re.compile('(\d+)') @@ -34,6 +34,6 @@ sockstat = open('/proc/net/sockstat').read() numbers = re_num.findall(sockstat) for i, (name, label) in enumerate(fields): - print '%s.value %s' % (name, numbers[i]) + print('%s.value %s' % (name, numbers[i])) sys.exit(0)