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)
committerSimon Marchi <simon.marchi@efficios.com>
Tue, 27 Aug 2019 20:23:29 +0000 (16:23 -0400)
commit082db6480d4f3686922269ec24c2ecc7b2c28bce
treec6e2ef9ad701eafed70e75c8e9fd9568fc032c59
parent282a37f5559354b6029da95ed03dd23a42fd59db
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.027032 seconds and 4 git commands to generate.