python: fix all 'imported but unused' warnings
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 27 Aug 2019 04:54:49 +0000 (00:54 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Tue, 27 Aug 2019 20:23:29 +0000 (16:23 -0400)
Fix all instances of this warning (code F401) found in the repo by
flake8.

Change-Id: I49dc56715d7f23a8779b7bcaf819ee2c90523a6f
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reported-by: flake8
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1979
Tested-by: jenkins <jenkins@lttng.org>
src/bindings/python/bt2/bt2/component_descriptor.py
src/bindings/python/bt2/bt2/event_class.py
src/bindings/python/bt2/bt2/mip.py
src/bindings/python/bt2/bt2/trace_collection_message_iterator.py
tests/bindings/python/bt2/test_mip.py

index f86928d2c87a7c95d491ea8bf2a96d21c9ca235f..3134886b3d6e9a1e44ab0fc49ddc662f23bc699b 100644 (file)
@@ -20,7 +20,7 @@
 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 # THE SOFTWARE.
 
-from bt2 import native_bt, object, utils
+from bt2 import native_bt
 from bt2 import component as bt2_component
 import bt2
 
index 8d9d54dcc8fe7fae316a23a7d6b4343b23cfa6e5..afa42d03afee8b4d398fe0fc84db309cc9aff96b 100644 (file)
@@ -23,9 +23,7 @@
 from bt2 import native_bt, object, utils
 from bt2 import field_class as bt2_field_class
 from bt2 import value as bt2_value
-from bt2 import event as bt2_event
 from bt2 import stream_class as bt2_stream_class
-import bt2
 
 
 class EventClassLogLevel:
index 43e1b7b85cc4b453bc51ccf71d178a8da61577ec..92997f17955728629cd4a5958f58cf1b96b07ed5 100644 (file)
@@ -20,7 +20,7 @@
 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 # THE SOFTWARE.
 
-from bt2 import native_bt, object, utils
+from bt2 import native_bt, utils
 import bt2
 
 
index d14efe23fdd8889487a167e381ad5b9ed22205e7..74417776d07d15170258b931f075cb1516779efc 100644 (file)
@@ -24,7 +24,6 @@ from bt2 import utils, native_bt
 import bt2
 import itertools
 from bt2 import message_iterator as bt2_message_iterator
-from bt2 import logging as bt2_logging
 from bt2 import port as bt2_port
 from bt2 import component as bt2_component
 from bt2 import value as bt2_value
index 642539e99ab78f3d988b0cfd060b42b8cb9cd0ed..c5a418e1ea83ed45727ca95b95b5cfc008be4ea1 100644 (file)
@@ -17,7 +17,6 @@
 #
 
 import unittest
-import copy
 import bt2
 
 
This page took 0.027225 seconds and 4 git commands to generate.