bt2: _ArrayField.__setitem__(): do not check type
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 28 Jun 2019 05:12:11 +0000 (01:12 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Wed, 3 Jul 2019 01:31:27 +0000 (21:31 -0400)
commit91189aebe7163493f81e839b1e8517dcd43d65bd
treecc2a3e1063c8e7da8ceab534fc82f3e437bf62b5
parent25bb9babab83dac379726dc2de47f6023a3834e9
bt2: _ArrayField.__setitem__(): do not check type

There's no need to check the type of the parameter because

    field.value = value

will raise a type error if `value` has an unexpected type.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: I0ae91873024e9a52a00bb1ac6f03ff830a19dea7
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1570
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Reviewed-by: Simon Marchi <simon.marchi@efficios.com>
src/bindings/python/bt2/bt2/field.py
This page took 0.025635 seconds and 4 git commands to generate.