bt2: clean available `bt2` package names
[babeltrace.git] / src / bindings / python / bt2 / bt2 / port.py
index 201e2778adc9daf83571165b6355d9b043639162..bf11aa9430def3529db5df0614e0e122e8eefc42 100644 (file)
 # THE SOFTWARE.
 
 from bt2 import native_bt, object
-import bt2.component
-import bt2.connection
-import bt2.message_iterator
-import bt2.message
+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
 
 
@@ -72,7 +72,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._Connection._create_from_ptr_and_get_ref(conn_ptr)
 
     @property
     def is_connected(self):
@@ -101,7 +101,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._Connection._create_from_ptr_and_get_ref(conn_ptr)
 
     @property
     def user_data(self):
This page took 0.023947 seconds and 4 git commands to generate.