mirror of
https://github.com/vee1e/flare-floss.git
synced 2026-09-01 09:49:59 +00:00
style: black/isort formatting for earlier fixes
This commit is contained in:
parent
7c4d4d02a8
commit
26af97d049
2 changed files with 6 additions and 4 deletions
|
|
@ -398,7 +398,9 @@ def analyze(options: Options) -> Optional[ResultDocument]:
|
|||
# when stdout is redirected, such as in 'floss foo.exe | less' use default prompt values
|
||||
if sys.stdout.isatty():
|
||||
try:
|
||||
prompt = input("Do you want to enable string deobfuscation? (this could take a long time) [y/N] ")
|
||||
prompt = input(
|
||||
"Do you want to enable string deobfuscation? (this could take a long time) [y/N] "
|
||||
)
|
||||
except KeyboardInterrupt:
|
||||
raise PipelineError("aborted by user", exit_code=130)
|
||||
except EOFError:
|
||||
|
|
|
|||
|
|
@ -132,9 +132,9 @@ def test_is_structured_layout():
|
|||
|
||||
|
||||
def _make_root_layout(cls, name, **extra):
|
||||
from floss.layout.base import Structure
|
||||
from floss.layout.types import ExtractedString, TaggedString
|
||||
from floss.ranges import Range, Slice, OffsetRanges
|
||||
from floss.layout.base import Structure
|
||||
from floss.layout.types import TaggedString, ExtractedString
|
||||
|
||||
buf = b"\x00" * 32
|
||||
sl = Slice(buf=buf, range=Range(offset=0, length=len(buf)), base_offset=0)
|
||||
|
|
@ -159,8 +159,8 @@ def test_pe_root_strings_get_structure_annotations():
|
|||
|
||||
|
||||
def test_elf_root_strings_get_structure_annotations():
|
||||
from floss.layout.base import ELFLayout
|
||||
from floss.ranges import OffsetRanges
|
||||
from floss.layout.base import ELFLayout
|
||||
|
||||
layout = _make_root_layout(ELFLayout, "elf", xor_key=None, relocation_offsets=OffsetRanges(ranges=[]))
|
||||
layout.mark_structures()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue