mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 18:57:19 +02:00
espcoredump: Fix Python style
This commit is contained in:
@ -164,7 +164,6 @@ class ElfFile(object):
|
|||||||
sha256.update(elf_bytes)
|
sha256.update(elf_bytes)
|
||||||
self.sha256 = sha256.digest()
|
self.sha256 = sha256.digest()
|
||||||
|
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _parse_string_table(byte_str, offset): # type: (bytes, int) -> str
|
def _parse_string_table(byte_str, offset): # type: (bytes, int) -> str
|
||||||
section_name_str = byte_str[offset:]
|
section_name_str = byte_str[offset:]
|
||||||
|
@ -88,7 +88,7 @@ class EspCoreDumpVersion(object):
|
|||||||
|
|
||||||
COREDUMP_SUPPORTED_TARGETS = XTENSA_CHIPS + RISCV_CHIPS
|
COREDUMP_SUPPORTED_TARGETS = XTENSA_CHIPS + RISCV_CHIPS
|
||||||
|
|
||||||
def __init__(self, version=None): # type: (int) -> None
|
def __init__(self, version=None): # type: (Optional[int]) -> None
|
||||||
"""Constructor for core dump version
|
"""Constructor for core dump version
|
||||||
"""
|
"""
|
||||||
super(EspCoreDumpVersion, self).__init__()
|
super(EspCoreDumpVersion, self).__init__()
|
||||||
@ -248,7 +248,7 @@ class EspCoreDumpLoader(EspCoreDumpVersion):
|
|||||||
else:
|
else:
|
||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
|
|
||||||
def _extract_elf_corefile(self, exe_name=None, e_machine=ESPCoreDumpElfFile.EM_XTENSA): # type: (str, int) -> None
|
def _extract_elf_corefile(self, exe_name=None, e_machine=ESPCoreDumpElfFile.EM_XTENSA): # type: (Optional[str], int) -> None
|
||||||
"""
|
"""
|
||||||
Reads the ELF formatted core dump image and parse it
|
Reads the ELF formatted core dump image and parse it
|
||||||
"""
|
"""
|
||||||
|
Reference in New Issue
Block a user