Python: remove explicit inheritance from object
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 5 Dec 2014 01:34:25 +0000 (20:34 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 13 Feb 2015 17:07:59 +0000 (12:07 -0500)
This is a Python 3 binding, and all classes are new-style
classes in Python 3, so there is no need to inherit from object
explicitly.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
bindings/python/bt.py

index f03084ed8ba491fbd0b4e61397f397088cc07247..1a65bf06e41a6a7fb9869c22c4c79a5927278ada 100644 (file)
@@ -221,7 +221,7 @@ class ClockType:
     CLOCK_REAL = 1
 
 
-class TraceHandle(object):
+class TraceHandle:
 
     """
     The TraceHandle allows the user to manipulate a trace file directly.
@@ -543,7 +543,7 @@ class FieldError(Exception):
         return repr(self.value)
 
 
-class EventDeclaration(object):
+class EventDeclaration:
 
     """Event declaration class.  Do not instantiate."""
     MAX_UINT64 = 0xFFFFFFFFFFFFFFFF
@@ -604,7 +604,7 @@ class EventDeclaration(object):
                 yield field_declaration
 
 
-class FieldDeclaration(object):
+class FieldDeclaration:
 
     """Field declaration class. Do not instantiate."""
 
@@ -822,7 +822,7 @@ def _create_field_declaration(declaration_ptr, name, scope):
     return declaration
 
 
-class _Definition(object):
+class _Definition:
 
     def __init__(self, definition_ptr, scope):
         self._d = definition_ptr
This page took 0.026149 seconds and 4 git commands to generate.