Remove the imports reported as unused by flake8.
Change-Id: I6e657de3dea8db18a99e711e594cb92f98e1cebb
Approved-By: Tom Tromey <tom@tromey.com>
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-import itertools
-
import gdb
from gdb.FrameDecorator import DAPFrameDecorator
# Efficient handling of this case is important, and not just for typos.
# Sometimes the debug info for the needed object isn't present.
-from perftest import measure, perftest, utils
+from perftest import perftest, utils
class NullLookup(perftest.TestCaseWithBasicMeasurements):
# typedef used pervasively. This exercises the perf regression introduced by
# the original patch to pr 16253.
-from perftest import measure, perftest, utils
+from perftest import perftest, utils
class PervasiveTypedef(perftest.TestCaseWithBasicMeasurements):
# is that here we do not pre-expand the symtab: we don't want include
# GDB's slowness in searching expanded symtabs first to color these results.
-from perftest import measure, perftest, utils
+from perftest import perftest, utils
class PrintCerr(perftest.TestCaseWithBasicMeasurements):
# these before it searches the index (there is work-in-progress to fix this),
# this test helps measure the issue.
-from perftest import measure, perftest, utils
+from perftest import perftest, utils
class GmonsterPtypeString(perftest.TestCaseWithBasicMeasurements):
# Measure performance of running to main.
-from perftest import measure, perftest, utils
+from perftest import perftest, utils
class GmonsterRuntoMain(perftest.TestCaseWithBasicMeasurements):
# Measure performance of selecting a file to debug.
-from perftest import measure, perftest, utils
+from perftest import perftest, utils
class GmonsterSelectFile(perftest.TestCaseWithBasicMeasurements):
# This test case is to test the speed of GDB when it is handling the
# shared libraries of inferior are loaded and unloaded.
-from perftest import measure, perftest
+from perftest import perftest
import gdb
# Test a printer with a bad children iterator.
-import re
import gdb.printing
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-import copy
import itertools
import gdb
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-import itertools
-
# This file is part of the GDB testsuite. It tests Python-based
# frame-filters.
import gdb
-from gdb.FrameDecorator import FrameDecorator
class FrameObjFile:
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-import itertools
# This file is part of the GDB testsuite. It tests Python-based
# frame-filters.
import gdb
-from gdb.FrameDecorator import FrameDecorator
class FrameObjFile:
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-import copy
import itertools
# This file is part of the GDB testsuite. It tests Python-based
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-import copy
import itertools
# This file is part of the GDB testsuite. It tests Python-based
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-import sys
import gdb
import gdb.types
# This file is part of the GDB testsuite. It tests python pretty
# printers.
-import re
-
import gdb.printing
import gdb.types
# This file is part of the GDB testsuite. It tests python pretty
# printer registration.
-import re
-
import gdb.printing
import gdb.types
# This file is part of the GDB testsuite. It tests python unwinders.
-import re
-
import gdb.types
-from gdb.unwinder import Unwinder, register_unwinder
+from gdb.unwinder import Unwinder
class TestGlobalUnwinder(Unwinder):
# This file is part of the GDB testsuite. It tests python pretty
# printers.
-import re
import gdb