From d14a864ace9bc0a891c17a14a508160165a7d30e Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Mon, 22 Jul 2019 13:42:26 -0400 Subject: [PATCH] bt2: move _bt_graph_is_configured_from_native() to `_UserSinkComponent` 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 Change-Id: Ie537c6871d145d2cb3c96eaa0e95573b02731cc9 Reviewed-on: https://review.lttng.org/c/babeltrace/+/1739 Tested-by: jenkins --- src/bindings/python/bt2/bt2/component.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bindings/python/bt2/bt2/component.py b/src/bindings/python/bt2/bt2/component.py index ef86bbcf..d7d42a71 100644 --- a/src/bindings/python/bt2/bt2/component.py +++ b/src/bindings/python/bt2/bt2/component.py @@ -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): -- 2.34.1