Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use _yield from []_ to create empty generator when needed #2572 #2581

Merged
merged 13 commits into from
Feb 3, 2025
Prev Previous commit
Next Next commit
code styles error
dhruvak001 committed Jan 31, 2025
commit b5ed1b4cf2ed04af888de98572ceb7e0e1fe968d
15 changes: 12 additions & 3 deletions capa/features/extractors/binja/insn.py
Original file line number Diff line number Diff line change
@@ -14,10 +14,19 @@

from typing import Any, Iterator, Optional

from binaryninja import Function
from binaryninja import (
Function,
)
from binaryninja import BasicBlock as BinjaBasicBlock
from binaryninja import BinaryView, ILRegister, SymbolType, BinaryReader, RegisterValueType, LowLevelILOperation, LowLevelILInstruction

from binaryninja import (
BinaryView,
ILRegister,
SymbolType,
BinaryReader,
RegisterValueType,
LowLevelILOperation,
LowLevelILInstruction,
)

import capa.features.extractors.helpers
from capa.features.insn import API, MAX_STRUCTURE_SIZE, Number, Offset, Mnemonic, OperandNumber, OperandOffset