From: Philippe Proulx Date: Fri, 22 Sep 2017 19:08:14 +0000 (-0400) Subject: Fix: babeltrace: writer.py: do not use += on bt2.trace._TraceEnv X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=0f8db238f24eb6cb2c560dc12d39d2f468b67e7e Fix: babeltrace: writer.py: do not use += on bt2.trace._TraceEnv Signed-off-by: Philippe Proulx Signed-off-by: Jérémie Galarneau --- diff --git a/bindings/python/babeltrace/babeltrace/writer.py b/bindings/python/babeltrace/babeltrace/writer.py index 61d28a51..d5f282e6 100644 --- a/bindings/python/babeltrace/babeltrace/writer.py +++ b/bindings/python/babeltrace/babeltrace/writer.py @@ -1954,7 +1954,7 @@ class Writer: raise TypeError("Value type is not supported.") try: - self._w.trace.env += {name: value} + self._w.trace.env[name] = value except: raise ValueError("Could not add environment field to trace.")