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:25:14 +0000 (09:25 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
bindings/python/babeltrace.i.in

index 7b796335d20505d582ffd034dd53dfd3fef977a7..6a34e2550c1f0f5c2e9bb82c35ddf49753bc267f 100644 (file)
@@ -1939,9 +1939,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.")
 
@@ -2012,7 +2012,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.025349 seconds and 4 git commands to generate.