Skip to content

Commit 2ae296d

Browse files
committed
Apply black to force the actions to rerun and hopefully not queue forever
1 parent 8e007a5 commit 2ae296d

File tree

8 files changed

+11
-13
lines changed

8 files changed

+11
-13
lines changed

volatility3/framework/constants/linux/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,7 @@ class ELF_CLASS(IntEnum):
321321

322322
class PT_FLAGS(Flag):
323323
"PTrace flags"
324+
324325
PT_PTRACED = 0x00001
325326
PT_SEIZED = 0x10000
326327

volatility3/framework/layers/codecs/__init__.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,4 @@
22
# which is available at https://www.volatilityfoundation.org/license/vsl-v1.0
33
#
44

5-
"""Codecs used for encoding or decoding data should live here
6-
7-
8-
"""
5+
"""Codecs used for encoding or decoding data should live here"""

volatility3/framework/layers/qemu.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def _check_header(
104104
cls, base_layer: interfaces.layers.DataLayerInterface, name: str = ""
105105
):
106106
header = base_layer.read(0, 8)
107-
if header[:4] != b"\x51\x45\x56\x4D":
107+
if header[:4] != b"\x51\x45\x56\x4d":
108108
raise exceptions.LayerException(name, "No QEMU magic bytes")
109109
if header[4:] != b"\x00\x00\x00\x03":
110110
raise exceptions.LayerException(name, "Unsupported QEMU version found")

volatility3/framework/layers/vmware.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ def _read_header(self) -> None:
6161
data = meta_layer.read(0, header_size)
6262
magic, unknown, groupCount = struct.unpack(self.header_structure, data)
6363
if magic not in [
64-
b"\xD0\xBE\xD2\xBE",
65-
b"\xD1\xBA\xD1\xBA",
66-
b"\xD2\xBE\xD2\xBE",
67-
b"\xD3\xBE\xD3\xBE",
64+
b"\xd0\xbe\xd2\xbe",
65+
b"\xd1\xba\xd1\xba",
66+
b"\xd2\xbe\xd2\xbe",
67+
b"\xd3\xbe\xd3\xbe",
6868
]:
6969
raise VmwareFormatException(
7070
self.name, f"Wrong magic bytes for Vmware layer: {repr(magic)}"

volatility3/framework/plugins/windows/malfind.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def _generator(self, procs):
169169
# set refined criteria to know when to add to "Notes" column
170170
refined_criteria = {
171171
b"MZ": "MZ header",
172-
b"\x55\x8B": "PE header",
172+
b"\x55\x8b": "PE header",
173173
b"\x55\x48": "Function prologue",
174174
b"\x55\x89": "Function prologue",
175175
}

volatility3/framework/plugins/windows/mbrscan.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def _generator(self) -> Iterator[Tuple]:
7272
partition_table_object = symbol_table + constants.BANG + "PARTITION_TABLE"
7373

7474
# Define Signature and Data Length
75-
mbr_signature = b"\x55\xAA"
75+
mbr_signature = b"\x55\xaa"
7676
mbr_length = 0x200
7777
bootcode_length = 0x1B8
7878

volatility3/framework/plugins/windows/shimcachemem.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def find_shimcache_win_xp(
157157
continue
158158

159159
try:
160-
if proc_layer.read(vad.get_start(), 4) != b"\xEF\xBE\xAD\xDE":
160+
if proc_layer.read(vad.get_start(), 4) != b"\xef\xbe\xad\xde":
161161
if pid == 624:
162162
vollog.debug("VAD magic bytes don't match DEADBEEF")
163163
continue

volatility3/framework/symbols/windows/pdbconv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ def name_strip(self, name):
488488
"""Strips unnecessary components from the start of a symbol name."""
489489
new_name = name
490490

491-
if new_name[:1] in ["_", "@", "\u007F"]:
491+
if new_name[:1] in ["_", "@", "\u007f"]:
492492
new_name = new_name[1:]
493493

494494
name_array = new_name.split("@")

0 commit comments

Comments
 (0)