python: fix all 'is assigned to but never used' warnings
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 27 Aug 2019 04:50:06 +0000 (00:50 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 4 Sep 2019 15:58:22 +0000 (11:58 -0400)
commit36153ada10de62a443f2de95aba56ff48ba0f6dc
tree9db6e20c0d4aac75bf9a389a0259bd17f498db98
parent538e1d9ff812c1382d33ab1b24855d7409f778b0
python: fix all 'is assigned to but never used' warnings

Fix all instances of this warning (code F841) found in the repo by
flake8.  In one instance (in test_plugin.py), I added an assertion to
use the variable.  In all others, I considered the variable not useful
and removed it.

Change-Id: I95c282a610d0e3b8adf7cee40ce5229744e8ebc0
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reported-by: flake8
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1978
Tested-by: jenkins <jenkins@lttng.org>
13 files changed:
tests/bindings/python/bt2/test_component.py
tests/bindings/python/bt2/test_connection.py
tests/bindings/python/bt2/test_error.py
tests/bindings/python/bt2/test_field_class.py
tests/bindings/python/bt2/test_graph.py
tests/bindings/python/bt2/test_integer_range_set.py
tests/bindings/python/bt2/test_plugin.py
tests/bindings/python/bt2/test_port.py
tests/bindings/python/bt2/test_query_executor.py
tests/bindings/python/bt2/test_stream_class.py
tests/bindings/python/bt2/test_trace_class.py
tests/bindings/python/bt2/test_value.py
tests/data/plugins/flt.utils.muxer/bt_plugin_muxer_test.py
This page took 0.025411 seconds and 4 git commands to generate.