bt2: rename `_Trace.env` -> `_Trace.environment`
[babeltrace.git] / src / bindings / python / bt2 / bt2 / trace_class.py
index 1ec2a5055e120f9fafac87029667a8038615f245..bd39beabdfa5516dad2961e59659ac15b63a985e 100644 (file)
@@ -48,7 +48,7 @@ class _TraceClass(object._SharedObject, collections.abc.Mapping):
 
     # Instantiate a trace of this class.
 
-    def __call__(self, name=None, user_attributes=None, uuid=None, env=None):
+    def __call__(self, name=None, user_attributes=None, uuid=None, environment=None):
         trace_ptr = native_bt.trace_create(self._ptr)
 
         if trace_ptr is None:
@@ -65,9 +65,9 @@ class _TraceClass(object._SharedObject, collections.abc.Mapping):
         if uuid is not None:
             trace._uuid = uuid
 
-        if env is not None:
-            for key, value in env.items():
-                trace.env[key] = value
+        if environment is not None:
+            for key, value in environment.items():
+                trace.environment[key] = value
 
         return trace
 
This page took 0.024237 seconds and 4 git commands to generate.