bt2: prepend `_` prefix to names of classes that the user cannot create
[babeltrace.git] / bindings / python / bt2 / bt2 / event_class.py
index d63c93476532e4ab32a6f20e0cc1b34faf142b4b..d3141b86f0a79a0362c9cd3fc6ad18be343c41e2 100644 (file)
@@ -45,7 +45,7 @@ class EventClassLogLevel:
     DEBUG = native_bt.EVENT_CLASS_LOG_LEVEL_DEBUG
 
 
-class EventClass(object._SharedObject):
+class _EventClass(object._SharedObject):
     _get_ref = staticmethod(native_bt.event_class_get_ref)
     _put_ref = staticmethod(native_bt.event_class_put_ref)
 
@@ -54,7 +54,7 @@ class EventClass(object._SharedObject):
         sc_ptr = native_bt.event_class_borrow_stream_class(self._ptr)
 
         if sc_ptr is not None:
-            return bt2.stream_class.StreamClass._create_from_ptr_and_get_ref(sc_ptr)
+            return bt2.stream_class._StreamClass._create_from_ptr_and_get_ref(sc_ptr)
 
     @property
     def name(self):
This page took 0.023014 seconds and 4 git commands to generate.