From 4cde866efbb099e9deff9466055cd5514074b902 Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Thu, 4 Dec 2014 20:34:25 -0500 Subject: [PATCH] Python: remove explicit inheritance from object MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Jérémie Galarneau --- bindings/python/bt.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bindings/python/bt.py b/bindings/python/bt.py index f03084ed8..1a65bf06e 100644 --- a/bindings/python/bt.py +++ b/bindings/python/bt.py @@ -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 -- 2.34.1