summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Kacur <jkacur@redhat.com>2021-10-15 01:01:04 -0400
committerJohn Kacur <jkacur@redhat.com>2021-10-15 01:01:04 -0400
commitecb4cfc453d9c5b95816af5bf614f2a0261009bf (patch)
tree36853bc4eef1c3f1aff7fc6a8c8b1262f99cbf4d
parent25209843b8b2dc9ab21f03463946e96abc333b52 (diff)
downloadrt-tests-ecb4cfc453d9c5b95816af5bf614f2a0261009bf.tar.gz
rt-tests:hwlatdetect.py: Remove multiple statements on one line
Remove multiple statements on one line Signed-off-by: John Kacur <jkacur@redhat.com>
-rwxr-xr-xsrc/hwlatdetect/hwlatdetect.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/hwlatdetect/hwlatdetect.py b/src/hwlatdetect/hwlatdetect.py
index ac87036..66e132b 100755
--- a/src/hwlatdetect/hwlatdetect.py
+++ b/src/hwlatdetect/hwlatdetect.py
@@ -19,10 +19,12 @@ quiet = False
watch = False
def debug(str):
- if debugging: print(str)
+ if debugging:
+ print(str)
def info(str):
- if not quiet: print(str)
+ if not quiet:
+ print(str)
#
# Class used to manage mounting and umounting the debugfs
@@ -358,7 +360,8 @@ class Tracer(Detector):
val = self.get_sample()
while val:
self.samples.append(val)
- if watch: val.display()
+ if watch:
+ val.display()
val = self.get_sample()
time.sleep(0.1)
except KeyboardInterrupt as e:
@@ -425,7 +428,8 @@ class Hwlat(Detector):
while val:
val = val.strip()
self.samples.append(val)
- if watch: print(val)
+ if watch:
+ print(val)
val = self.get_sample()
time.sleep(0.1)
except KeyboardInterrupt as e: