diff mbox series

[01/17] rt-tests:hwlatdetect: Remove useless object in class declaration

Message ID 20211111204207.10167-1-jkacur@redhat.com
State New
Headers show
Series [01/17] rt-tests:hwlatdetect: Remove useless object in class declaration | expand

Commit Message

John Kacur Nov. 11, 2021, 8:41 p.m. UTC
There is no need to specify object in python3 when creating a class

Signed-off-by: John Kacur <jkacur@redhat.com>
---
 src/hwlatdetect/hwlatdetect.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/src/hwlatdetect/hwlatdetect.py b/src/hwlatdetect/hwlatdetect.py
index 56fd2af8641d..ac87036d4c08 100755
--- a/src/hwlatdetect/hwlatdetect.py
+++ b/src/hwlatdetect/hwlatdetect.py
@@ -31,7 +31,7 @@  def info(str):
 # discovers that debugfs is already mounted, it will leave
 # it mounted.
 #
-class DebugFS(object):
+class DebugFS:
     '''class to manage mounting/umounting the debugfs'''
     def __init__(self):
         self.premounted = False
@@ -116,7 +116,7 @@  class DetectorNotAvailable(Exception):
 # above, if the module is already loaded, this class will
 # leave it alone when cleaning up.
 #
-class Kmod(object):
+class Kmod:
     ''' class to manage loading and unloading of kernel modules'''
 
     names = ("hwlat_detector", "smi_detector")
@@ -184,7 +184,7 @@  class Kmod(object):
 #
 # base class for detection modules
 #
-class Detector(object):
+class Detector:
     '''base class for detector modules'''
     def __init__(self):
         self.type = "unknown"
@@ -293,7 +293,7 @@  class Tracer(Detector):
         'threshold' : "tracing_thresh",
     }
 
-    class Sample(object):
+    class Sample:
         'private class for tracer sample data'
         __slots__ = 'timestamp', 'inner', 'outer',
         def __init__(self, line):