code-coverage: correct unused python imports in intermediate layer
Signed-off-by: Saul Romero <saul.romero@arm.com>
diff --git a/coverage-tool/coverage-reporting/intermediate_layer.py b/coverage-tool/coverage-reporting/intermediate_layer.py
index 5d25a7b..2cb1a81 100644
--- a/coverage-tool/coverage-reporting/intermediate_layer.py
+++ b/coverage-tool/coverage-reporting/intermediate_layer.py
@@ -28,7 +28,6 @@
from typing import Generator
from typing import Union
from typing import Tuple
-from functools import cached_property
import logging
__version__ = "7.0"
@@ -431,7 +430,7 @@
def get(asm_code: str) -> Generator['BinaryParser.AssemblyLine',
None, None]:
"""
- Static method generator to extract an assembly code line from a
+ Static method generator to extract an assembly code line from an
assembly code block.
:param asm_code: Lines of assembly code within the dump
@@ -530,7 +529,7 @@
self._source_files.setdefault(source_code_block.source_file,
{"functions": {}, "lines": {}})
# Add a line coverage block (if not existent) from a source block
- # using the source code line number as key and link it to the source
+ # using the source code line number as a key and link it to the source
# file coverage block
self._source_files[source_code_block.source_file]["lines"].setdefault(
source_code_block.line_number, {"covered": False, "elf_index": {}})
@@ -607,7 +606,6 @@
self.asm_lines = {}
# Initialize for unknown elf files
self.elf_custom = ELF_MAP["custom_offset"]
- sources_config = {}
print("Generating intermediate json layer '{}'...".format(
self.config['parameters']['output_file']))
for elf in self.elfs:
@@ -695,7 +693,7 @@
def _process_fn_no_sources(self, parser: BinaryParser):
"""
- Checks function coverage for functions with no dwarf signature i.e
+ Checks function coverage for functions with no dwarf signature i.e.
sources.
:param parser: Binary parser that contains objects needed