Skip to content

Commit 5a9fc6a

Browse files
committed
Fix unused imports identified by LGTM.
1 parent 475aec6 commit 5a9fc6a

22 files changed

+17
-45
lines changed

pyocd/cache/memory.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
from intervaltree import (Interval, IntervalTree)
1818
import logging
1919

20-
from ..core import exceptions
2120
from ..utility import conversion
2221
from .metrics import CacheMetrics
2322

pyocd/commands/commands.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
from .. import coresight
2323
from ..core.helpers import ConnectHelper
24-
from ..core import (exceptions, session)
24+
from ..core import exceptions
2525
from ..probe.tcp_probe_server import DebugProbeServer
2626
from ..core.target import Target
2727
from ..flash.loader import FlashLoader
@@ -44,7 +44,6 @@
4444
msb,
4545
bfx,
4646
bfi,
47-
round_up_div,
4847
)
4948
from .base import CommandBase
5049

pyocd/commands/repl.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
from __future__ import print_function
1818
import logging
1919
import os
20-
import sys
2120
import six
2221
import traceback
2322
import atexit

pyocd/commands/values.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,9 @@
1616

1717
import logging
1818
import prettytable
19-
import textwrap
2019

2120
from .. import coresight
22-
from ..core import (exceptions, session)
21+
from ..core import exceptions
2322
from ..probe.debug_probe import DebugProbe
2423
from ..coresight.ap import MEM_AP
2524
from ..core.target import Target

pyocd/core/soc_target.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,8 @@
1515
# limitations under the License.
1616

1717
import logging
18-
import six
1918

2019
from .target import Target
21-
from .memory_map import MemoryType
22-
from . import exceptions
2320
from ..flash.eraser import FlashEraser
2421
from ..debug.cache import CachingDebugContext
2522
from ..debug.elf.elf import ELFBinaryFile

pyocd/coresight/coresight_target.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,8 @@
2121
from ..core.memory_map import MemoryType
2222
from ..core.soc_target import SoCTarget
2323
from ..core import exceptions
24-
from . import (dap, discovery, cortex_m, cortex_m_v8m, rom_table)
25-
from ..debug.svd.loader import (SVDFile, SVDLoader)
26-
from ..debug.cache import CachingDebugContext
27-
from ..utility.graph import GraphNode
24+
from . import (dap, discovery)
25+
from ..debug.svd.loader import SVDLoader
2826
from ..utility.sequencer import CallSequence
2927
from ..target.pack.flash_algo import PackFlashAlgo
3028

pyocd/coresight/cortex_m.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
import logging
1818
from time import (time, sleep)
19-
from xml.etree.ElementTree import (Element, SubElement, tostring)
2019

2120
from ..core.target import Target
2221
from ..core import exceptions

pyocd/gdbserver/gdbserver.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,10 @@
2121
import sys
2222
import six
2323
from xml.etree.ElementTree import (Element, SubElement, tostring)
24-
import io
2524

2625
from ..core import exceptions
2726
from ..core.target import Target
2827
from ..flash.loader import FlashLoader
29-
from ..flash.eraser import FlashEraser
3028
from ..utility.cmdline import convert_vector_catch
3129
from ..utility.conversion import (hex_to_byte_list, hex_encode, hex_decode, hex8_to_u32le)
3230
from ..utility.progress import print_progress

pyocd/probe/pydapaccess/interface/pyusb_backend.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
check_ep,
3131
)
3232
from ..dap_access_api import DAPAccessIntf
33-
from ... import common
3433

3534
LOG = logging.getLogger(__name__)
3635

pyocd/target/builtin/target_HC32F4A0.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# pyOCD debugger
2-
# Copyright (c) 2019 Arm Limited
2+
# Copyright (c) 2019-2020 Arm Limited
33
# SPDX-License-Identifier: Apache-2.0
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,7 +14,6 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17-
from ...flash.flash import Flash
1817
from ...coresight.coresight_target import CoreSightTarget
1918
from ...core.memory_map import (FlashRegion, RamRegion, MemoryMap)
2019
from ...debug.svd.loader import SVDFile

0 commit comments

Comments
 (0)