Fix: Variable name typo in SequenceField and Event classes
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 25 Apr 2014 13:22:33 +0000 (09:22 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 25 Apr 2014 13:23:39 +0000 (09:23 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
bindings/python/babeltrace.i.in

index b1da1c60588714db05e26695155b90d2e8b4495f..9fda6b94c027cba0cd38331cca06e80218a0590b 100644 (file)
@@ -1951,9 +1951,9 @@ class CTFWriter:
                """
                @length.setter
                def length(self, length_field):
-                       if not isinstance(length, CTFWriter.IntegerField):
+                       if not isinstance(length_field, CTFWriter.IntegerField):
                                raise TypeError("Invalid length field.")
-                       ret = _bt_ctf_field_sequence_set_length(self._f, length._f)
+                       ret = _bt_ctf_field_sequence_set_length(self._f, length_field._f)
                        if ret < 0:
                                raise ValueError("Could not set sequence length.")
 
@@ -2024,7 +2024,7 @@ class CTFWriter:
                def set_payload(self, field_name, value_field):
                        if not isinstance(value, CTFWriter.Field):
                                raise TypeError("Invalid value type.")
-                       ret = _bt_ctf_event_set_payload(self._e, str(field_name), value._f)
+                       ret = _bt_ctf_event_set_payload(self._e, str(field_name), value_field._f)
                        if ret < 0:
                                raise ValueError("Could not set event field payload.")
 
This page took 0.02645 seconds and 4 git commands to generate.