bt2: Add `Const` suffix to `_Connection` class and adapt tests
[babeltrace.git] / src / bindings / python / bt2 / bt2 / port.py
index bf11aa9430def3529db5df0614e0e122e8eefc42..d3bc398fa500653b750a658a914b788fa6ed0d90 100644 (file)
 # THE SOFTWARE.
 
 from bt2 import native_bt, object
-from bt2 import component as bt2_component
 from bt2 import connection as bt2_connection
-from bt2 import message_iterator as bt2_message_iterator
-from bt2 import message as bt2_message
-import bt2
 
 
 def _create_from_ptr_and_get_ref(ptr, port_type):
@@ -72,7 +68,7 @@ class _Port(object._SharedObject):
         if conn_ptr is None:
             return
 
-        return bt2_connection._Connection._create_from_ptr_and_get_ref(conn_ptr)
+        return bt2_connection._ConnectionConst._create_from_ptr_and_get_ref(conn_ptr)
 
     @property
     def is_connected(self):
@@ -101,7 +97,7 @@ class _UserComponentPort(_Port):
         if conn_ptr is None:
             return
 
-        return bt2_connection._Connection._create_from_ptr_and_get_ref(conn_ptr)
+        return bt2_connection._ConnectionConst._create_from_ptr_and_get_ref(conn_ptr)
 
     @property
     def user_data(self):
This page took 0.023313 seconds and 4 git commands to generate.