Skip to content

Commit 19b094a

Browse files
authored
Fix lint errors
1 parent 4738efe commit 19b094a

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

volatility3/framework/plugins/windows/etwpatch.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,17 +86,16 @@ def _generator(self):
8686

8787
# Map of opcodes to their instruction names
8888
opcode_map = {
89-
0xc3: "RET",
90-
0xe9: "JMP",
89+
0xC3: "RET",
90+
0xE9: "JMP",
9191
}
9292

9393
for dll_name, functions in found_symbols.items():
9494
for func_name, func_addr in functions:
9595
try:
96-
opcode = (
97-
self.context.layers[proc_layer_name]
98-
.read(func_addr, 1)[0]
99-
)
96+
opcode = self.context.layers[proc_layer_name].read(
97+
func_addr, 1
98+
)[0]
10099
if opcode in opcode_map:
101100
instruction = opcode_map[opcode]
102101
yield (

0 commit comments

Comments
 (0)