bt2: remove unused imports
[babeltrace.git] / src / bindings / python / bt2 / bt2 / field.py
index 0cdffb1abfbc3ce41c5becbca6d1ceeec40aa823..eb11107c093cc8fcd83953e104de8ed29f65f9fd 100644 (file)
 # THE SOFTWARE.
 
 from bt2 import native_bt, object, utils
-import bt2.field_class
+from bt2 import field_class as bt2_field_class
 import collections.abc
 import functools
 import numbers
 import math
-import bt2
 
 
 def _create_field_from_ptr(ptr, owner_ptr, owner_get_ref, owner_put_ref):
@@ -59,7 +58,7 @@ class _Field(object._UniqueObject):
     def field_class(self):
         field_class_ptr = native_bt.field_borrow_class_const(self._ptr)
         assert field_class_ptr is not None
-        return bt2.field_class._create_field_class_from_ptr_and_get_ref(field_class_ptr)
+        return bt2_field_class._create_field_class_from_ptr_and_get_ref(field_class_ptr)
 
     def _repr(self):
         raise NotImplementedError
This page took 0.023503 seconds and 4 git commands to generate.