From f3153537ca7a43fa20f0f858dcc3dacaccbe4460 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?imme=C3=ABmosol?= Date: Wed, 29 Mar 2023 20:06:26 +0200 Subject: [PATCH] Update xenmon.py Replace tabs with spaces Remove (file) from definition class Delayed --- tools/xenmon/xenmon.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/xenmon/xenmon.py b/tools/xenmon/xenmon.py index 2a948cd48a..3d241121c0 100644 --- a/tools/xenmon/xenmon.py +++ b/tools/xenmon/xenmon.py @@ -531,7 +531,7 @@ def show_livestats(cpu): # simple functions to allow initialization of log files without actually # physically creating files that are never used; only on the first real # write does the file get created -class Delayed(file): +class Delayed: def __init__(self, filename, mode): self.filename = filename self.saved_mode = mode @@ -675,8 +675,8 @@ def main(): if os.uname()[0] == "SunOS": xenbaked_cmd = "/usr/lib/xenbaked" - stop_cmd = "/usr/bin/pkill -INT -z global xenbaked" - kill_cmd = "/usr/bin/pkill -KILL -z global xenbaked" + stop_cmd = "/usr/bin/pkill -INT -z global xenbaked" + kill_cmd = "/usr/bin/pkill -KILL -z global xenbaked" else: # assumes that xenbaked is in your path xenbaked_cmd = "xenbaked"