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>
CLOCK_REAL = 1
-class TraceHandle(object):
+class TraceHandle:
"""
The TraceHandle allows the user to manipulate a trace file directly.
return repr(self.value)
-class EventDeclaration(object):
+class EventDeclaration:
"""Event declaration class. Do not instantiate."""
MAX_UINT64 = 0xFFFFFFFFFFFFFFFF
yield field_declaration
-class FieldDeclaration(object):
+class FieldDeclaration:
"""Field declaration class. Do not instantiate."""
return declaration
-class _Definition(object):
+class _Definition:
def __init__(self, definition_ptr, scope):
self._d = definition_ptr