From: Philippe Proulx Date: Fri, 5 Dec 2014 01:34:25 +0000 (-0500) Subject: Python: remove explicit inheritance from object X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=4cde866efbb099e9deff9466055cd5514074b902;p=deliverable%2Fbabeltrace.git Python: remove explicit inheritance from object 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 --- 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