bt2: remove unused imports
authorSimon Marchi <simon.marchi@efficios.com>
Mon, 12 Aug 2019 18:59:13 +0000 (14:59 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Mon, 12 Aug 2019 21:13:35 +0000 (17:13 -0400)
I ran flake8 and removed unused import warnings in all files, except
__init__.py, where the imports are present but not used in that file on
purpose.

Change-Id: Ib422a25b042eb1ba0a68e5c254947b5cfe3b7398
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1886
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
31 files changed:
src/bindings/python/bt2/bt2/clock_class.py
src/bindings/python/bt2/bt2/clock_snapshot.py
src/bindings/python/bt2/bt2/component.py
src/bindings/python/bt2/bt2/connection.py
src/bindings/python/bt2/bt2/error.py
src/bindings/python/bt2/bt2/event.py
src/bindings/python/bt2/bt2/field.py
src/bindings/python/bt2/bt2/field_class.py
src/bindings/python/bt2/bt2/logging.py
src/bindings/python/bt2/bt2/message.py
src/bindings/python/bt2/bt2/message_iterator.py
src/bindings/python/bt2/bt2/packet.py
src/bindings/python/bt2/bt2/plugin.py
src/bindings/python/bt2/bt2/port.py
src/bindings/python/bt2/bt2/query_executor.py
src/bindings/python/bt2/bt2/stream.py
src/bindings/python/bt2/bt2/stream_class.py
src/bindings/python/bt2/bt2/trace.py
tests/bindings/python/bt2/test_clock_class.py
tests/bindings/python/bt2/test_component.py
tests/bindings/python/bt2/test_component_class.py
tests/bindings/python/bt2/test_event.py
tests/bindings/python/bt2/test_field_class.py
tests/bindings/python/bt2/test_graph.py
tests/bindings/python/bt2/test_message.py
tests/bindings/python/bt2/test_message_iterator.py
tests/bindings/python/bt2/test_packet.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

index 932a26635bf97b29fe0fb1f720074836de3b0264..a8247dfbf4244ea72b53fbed26d480b4549b67d3 100644 (file)
@@ -21,7 +21,6 @@
 # THE SOFTWARE.
 
 from bt2 import native_bt, object, utils
-import bt2
 import uuid as uuidp
 
 
index 9e3effec1be35e36657128a7741c558fc44199c5..1ec41299e524eabf365637ec2539b639dee465b5 100644 (file)
@@ -22,7 +22,6 @@
 
 from bt2 import native_bt, object, utils
 import numbers
-import bt2
 from bt2 import clock_class as bt2_clock_class
 import functools
 
index 49aed23f14db8a56ba198b633c72aa331c30495b..d7e5f09e013139c88637f0d6b599c14d5bddd557 100644 (file)
@@ -27,11 +27,9 @@ from bt2 import value as bt2_value
 from bt2 import trace_class as bt2_trace_class
 from bt2 import clock_class as bt2_clock_class
 from bt2 import query_executor as bt2_query_executor
-import traceback
 from bt2 import port as bt2_port
 import sys
 import bt2
-import os
 
 
 # This class wraps a component class pointer. This component class could
index 74fe022d69d8882d938af7a7ecf9a8af180a9754..eb0c431627f852f728ef8a2637a74f980d5afb01 100644 (file)
 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 # THE SOFTWARE.
 
-from bt2 import native_bt, utils
-from bt2 import message_iterator as bt2_message_iterator
+from bt2 import native_bt
 from bt2 import port as bt2_port
 from bt2 import object as bt2_object
-import bt2
 
 
 class _Connection(bt2_object._SharedObject):
index f0b9d8e74da700751d882f14f3b96ff5a73d4412..dc1e65f55fb03b91e5f2af426468364bac05025c 100644 (file)
@@ -1,4 +1,4 @@
-from bt2 import utils, native_bt
+from bt2 import native_bt
 from collections import abc
 
 
index fac54f4ee9135c1a3f53971b7f50fa0b13e46f39..afa54947f983cb78e6a74701578ed4627a33e565 100644 (file)
 # THE SOFTWARE.
 
 from bt2 import native_bt, object, utils
-from bt2 import clock_class as bt2_clock_class
 from bt2 import event_class as bt2_event_class
 from bt2 import packet as bt2_packet
 from bt2 import stream as bt2_stream
 from bt2 import field as bt2_field
-from bt2 import clock_snapshot as bt2_clock_snapshot
-import bt2
 
 
 class _Event(object._UniqueObject):
index c8e292b195ff65f99b22ee21e43bcd52cfc94575..eb11107c093cc8fcd83953e104de8ed29f65f9fd 100644 (file)
@@ -26,7 +26,6 @@ import collections.abc
 import functools
 import numbers
 import math
-import bt2
 
 
 def _create_field_from_ptr(ptr, owner_ptr, owner_get_ref, owner_put_ref):
index 3e68b107feb5037ebce947929e06090b5b4aa759..18dbed930fc34437742755079ddaee23ca61bc3c 100644 (file)
@@ -22,7 +22,6 @@
 
 from bt2 import native_bt, object, utils
 import collections.abc
-from bt2 import field as bt2_field
 from bt2 import field_path as bt2_field_path
 from bt2 import integer_range_set as bt2_integer_range_set
 import bt2
index 5b9929b1ec09d8d64c9c4e86490cba9395288c25..3c975c6a692f6e6e79b2bf92571f5e60807ff8ec 100644 (file)
@@ -21,7 +21,6 @@
 # THE SOFTWARE.
 
 from bt2 import native_bt
-import bt2
 
 
 class LoggingLevel:
index 5a6240e3a0f2a96737fe8f5049565a2d6d7b7298..bf6cf84d8f4a1f275dbade2c2505081218e3b9a2 100644 (file)
@@ -25,7 +25,6 @@ from bt2 import clock_snapshot as bt2_clock_snapshot
 from bt2 import packet as bt2_packet
 from bt2 import stream as bt2_stream
 from bt2 import event as bt2_event
-import bt2
 
 
 def _create_from_ptr(ptr):
index 23e2c9a6a0c0257eeead66b184c610e768bf8d2b..23d6fbd5d0b28d4063b7fb7e325709560bd33267 100644 (file)
@@ -23,7 +23,6 @@
 from bt2 import native_bt, object, utils
 from bt2 import message as bt2_message
 import collections.abc
-from bt2 import component as bt2_component
 from bt2 import stream as bt2_stream
 from bt2 import event_class as bt2_event_class
 from bt2 import packet as bt2_packet
index bb629bbd5ab5248b216c67ba7724fabc1d593793..a14196969a24bc2dd2bd02ae2016e270a9d6ba2f 100644 (file)
@@ -23,7 +23,6 @@
 from bt2 import native_bt, object
 from bt2 import field as bt2_field
 from bt2 import stream as bt2_stream
-import bt2
 
 
 class _Packet(object._SharedObject):
index d59d0fef3d0edb33d984c58ac7fe587c1251a8de..66840f9475eeb7de55e1c76d1f8c4b36c97c6495 100644 (file)
@@ -24,7 +24,6 @@ from bt2 import native_bt, object, utils
 import collections.abc
 from bt2 import component as bt2_component
 import os.path
-import bt2
 
 
 def find_plugins_in_path(path, recurse=True, fail_on_load_error=False):
index 418f215b8952162cc6cc98bda6aedc3aa6f33f60..963a5b3c603097684b68422af5d86bf56de673ad 100644 (file)
 # THE SOFTWARE.
 
 from bt2 import native_bt, object
-from bt2 import component as bt2_component
 from bt2 import connection as bt2_connection
-from bt2 import message as bt2_message
-import bt2
 
 
 def _create_from_ptr_and_get_ref(ptr, port_type):
index 4578191972b13fd015078241bd20ea9e82d4c179..8e51f82522d1149efc5540a32ed5953ed9598ec4 100644 (file)
@@ -23,7 +23,6 @@
 from bt2 import native_bt, object, utils
 from bt2 import interrupter as bt2_interrupter
 from bt2 import component as bt2_component
-from bt2 import logging as bt2_logging
 from bt2 import value as bt2_value
 import bt2
 
index 308924e937384e003a074869c22a4abece677f52..4710aeaaa0cb51e215279694d25588f3d3491c82 100644 (file)
@@ -23,7 +23,6 @@
 from bt2 import native_bt, utils
 from bt2 import object as bt2_object
 from bt2 import packet as bt2_packet
-from bt2 import event as bt2_event
 from bt2 import trace as bt2_trace
 from bt2 import stream_class as bt2_stream_class
 import bt2
index 0677983b143e08eba524c55cd8fe8e34577a5dee..c543523c49700a10beaa5d29a3de6ad0493c3f49 100644 (file)
@@ -26,8 +26,6 @@ from bt2 import event_class as bt2_event_class
 from bt2 import trace_class as bt2_trace_class
 from bt2 import clock_class as bt2_clock_class
 import collections.abc
-from bt2 import stream as bt2_stream
-import bt2
 
 
 class _StreamClass(object._SharedObject, collections.abc.Mapping):
index 8a7e0d4426736fb06a9417e39b80262b69b7b214..e893b2d28bfabb24906b8735857b822b0bc728a0 100644 (file)
@@ -21,7 +21,6 @@
 # THE SOFTWARE.
 
 from bt2 import native_bt, object, utils
-from bt2 import field_class as bt2_field_class
 import collections.abc
 from bt2 import value as bt2_value
 from bt2 import stream as bt2_stream
index 3805c0d56168f87a18d94e935fe1f855f54c2f2b..9bc6bae7497593be6b15e7da9ccd941268b19f30 100644 (file)
@@ -18,7 +18,6 @@
 
 import unittest
 import uuid
-import copy
 import bt2
 from utils import run_in_component_init, TestOutputPortMessageIterator
 
index d420f926001cc1e3c92a664d1a8a7642541ba989..59a9bc195b261cff5f4429681bd1fd5d9682cc57 100644 (file)
@@ -17,7 +17,6 @@
 #
 
 import unittest
-import copy
 import bt2
 
 
index 6664b7a7020ef2c1afc5ccd793a54688ac3a670c..98fc91dbb9b7f8de675a95a59e71f66b40542fbd 100644 (file)
@@ -16,7 +16,6 @@
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 #
 
-from bt2 import value
 import unittest
 import bt2
 
index b146f2615f7146f5444e60ab5780821b34cc92b7..e4a0f7549e8e813ad3d562d831e2c66f162deb55 100644 (file)
@@ -16,7 +16,6 @@
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 #
 
-from collections import OrderedDict
 import unittest
 import bt2
 from utils import TestOutputPortMessageIterator
index 4d56b467eb1c650c8ae9425d4103cf3cc61e5e83..804d7d2089bbedc01af4a3fd9732a58bb40a73c5 100644 (file)
@@ -18,7 +18,6 @@
 
 import unittest
 import bt2
-import collections
 from utils import get_default_trace_class
 
 
index 49c08512505c8210e2446ff338ee91cbb91edeb6..0c9d9279851ed2ae0f335767fee928f5cee66448 100644 (file)
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 #
 
-from bt2 import value
-import collections
 import unittest
-import copy
 import bt2
 
 
index ef8e6b800a270eef25ab1c15ec4d09532473fcfe..5a3c2c1d671c6a27ca06cdc9828dcec322bd08b8 100644 (file)
@@ -16,7 +16,6 @@
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 #
 
-import collections
 import unittest
 import bt2
 from utils import TestOutputPortMessageIterator
index 31f4192126d33940bc28bd7eefb665d50c68351f..9635672fe792b409e53bf81cb8bc68036be81439 100644 (file)
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 #
 
-from bt2 import value
-import collections
 import unittest
-import copy
 import bt2
 import sys
 from utils import TestOutputPortMessageIterator
index 59fa2b451695183843f3f521bc91ef1f47fdfe45..250ac466c55dc4aa07aecadb3a6cd78fe9bdcaab 100644 (file)
@@ -16,7 +16,6 @@
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 #
 
-from collections import OrderedDict
 import unittest
 from utils import run_in_component_init
 
index 500ef9bdb90669b1c4bee423b1c9e008f658982e..3a0e27cb7b7eb1cfb34a08f0cd8feaacf15b4875 100644 (file)
@@ -16,9 +16,7 @@
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 #
 
-from bt2 import value
 import unittest
-import copy
 import bt2
 import re
 
index f8d6446c0fa0a39793a7651be4081138279db9fc..473efca7923aa1468195cfa4ffdcc3983a0cb2d6 100644 (file)
@@ -17,7 +17,6 @@
 #
 
 import unittest
-import bt2
 from utils import run_in_component_init
 
 
index 2ad8300147b691b6bbe728c6f39d019fbca6c74b..97ede58424d8e1499b29dda3206a81b126d34579 100644 (file)
@@ -17,7 +17,6 @@
 #
 
 import unittest
-import bt2
 from utils import run_in_component_init, get_default_trace_class
 
 
index f1bd4949ef69bfcad945333dd58d664f9e4532ac..d5051f90d25c48fb762f977755843762fe2725e3 100644 (file)
@@ -20,7 +20,6 @@ from functools import partial, partialmethod
 import operator
 import collections
 import unittest
-import numbers
 import math
 import copy
 import bt2
This page took 0.034507 seconds and 4 git commands to generate.