bt2: move _bt_graph_is_configured_from_native() to `_UserSinkComponent`
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Mon, 22 Jul 2019 17:42:26 +0000 (13:42 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Tue, 23 Jul 2019 13:07:19 +0000 (09:07 -0400)
This method is only called on a sink user component, it does not need to
be in the base `_UserComponent`.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: Ie537c6871d145d2cb3c96eaa0e95573b02731cc9
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1739
Tested-by: jenkins <jenkins@lttng.org>
src/bindings/python/bt2/bt2/component.py

index ef86bbcf50f1f42028e4789208e6222c6e90601b..d7d42a71bf1447e1b2a46e07022d22268c8feebd 100644 (file)
@@ -679,9 +679,6 @@ class _UserComponent(metaclass=_UserComponentType):
         )
         self._port_connected(port, other_port)
 
-    def _bt_graph_is_configured_from_native(self):
-        self._graph_is_configured()
-
     def _create_trace_class(self, assigns_automatic_stream_class_id=True):
         ptr = self._bt_as_self_component_ptr(self._bt_ptr)
         tc_ptr = native_bt.trace_class_create(ptr)
@@ -833,6 +830,9 @@ class _UserSinkComponent(_UserComponent, _SinkComponent):
         native_bt.self_component_sink_as_self_component
     )
 
+    def _bt_graph_is_configured_from_native(self):
+        self._graph_is_configured()
+
     @property
     def _input_ports(self):
         def get_input_port_count(self_ptr):
This page took 0.026749 seconds and 4 git commands to generate.