Skip to content

Commit 396daa5

Browse files
committed
Apply Black Python linter to mac.pslist plugin
Applied the Black Python linter to the mac PsList plugin, resulting in more readable and consistent code formatting.
1 parent 186b1ed commit 396daa5

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

volatility3/framework/plugins/mac/pslist.py

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,12 @@ def _generator(self):
114114
gid = task.p_gid
115115
start_time_seconds = task.p_start.tv_sec
116116
start_time_microseconds = task.p_start.tv_usec
117-
start_time = datetime.datetime.fromtimestamp(start_time_seconds + start_time_microseconds / 1e6)
118-
117+
start_time = datetime.datetime.fromtimestamp(
118+
start_time_seconds + start_time_microseconds / 1e6
119+
)
119120

120121
ppid = task.p_ppid
121-
122+
122123
yield (0, (offset, name, pid, uid, gid, start_time, ppid))
123124

124125
@classmethod
@@ -321,5 +322,14 @@ def list_tasks_pid_hash_table(
321322

322323
def run(self):
323324
return renderers.TreeGrid(
324-
[("OFFSET", format_hints.Hex), ("NAME", str), ("PID", int), ("UID", int), ("GID", int), ("Start Time", datetime.datetime), ("PPID", int)], self._generator()
325+
[
326+
("OFFSET", format_hints.Hex),
327+
("NAME", str),
328+
("PID", int),
329+
("UID", int),
330+
("GID", int),
331+
("Start Time", datetime.datetime),
332+
("PPID", int),
333+
],
334+
self._generator(),
325335
)

0 commit comments

Comments
 (0)