bt2: Add bindings for trace classes
[babeltrace.git] / bindings / python / bt2 / bt2 / trace.py
index 31548d6b2c6b9e6c2033db96ddbb7a0d51deac69..2f3f24e7a591bae32996a7183407869e4c5c0223 100644 (file)
@@ -23,7 +23,7 @@
 from bt2 import native_bt, object, utils
 import bt2.field_class
 import collections.abc
-import bt2.values
+import bt2.value
 import bt2.stream
 import copy
 import bt2
@@ -139,7 +139,7 @@ class _TraceEnv(collections.abc.MutableMapping):
         if value_ptr is None:
             raise KeyError(key)
 
-        return bt2.values._create_from_ptr(value_ptr)
+        return bt2.value._create_from_ptr(value_ptr)
 
     def __setitem__(self, key, value):
         utils._check_str(key)
@@ -160,7 +160,7 @@ class _TraceEnv(collections.abc.MutableMapping):
         return _TraceEnvIterator(self)
 
 
-class Trace(object._Object, collections.abc.Mapping):
+class Trace(object._SharedObject, collections.abc.Mapping):
     def __init__(self, name=None, native_byte_order=None, env=None,
                  packet_header_field_class=None, clock_classes=None,
                  stream_classes=None):
This page took 0.031907 seconds and 4 git commands to generate.