mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-08-26 16:12:23 +02:00
#1476 - ruff fixes
This commit is contained in:
@@ -3,14 +3,19 @@
|
||||
# https://github.com/libyal/libscca/blob/main/documentation/Windows%20Prefetch%20File%20(PF)%20format.asciidoc
|
||||
# https://github.com/volatilityfoundation/volatility3/
|
||||
# https://github.com/EricZimmerman/Prefetch/tree/master/Prefetch
|
||||
import logging, pathlib, datetime, io, struct
|
||||
import logging
|
||||
import pathlib
|
||||
import datetime
|
||||
import io
|
||||
import struct
|
||||
|
||||
from volatility3.framework import renderers, interfaces, exceptions, constants
|
||||
from volatility3.framework.configuration import requirements
|
||||
from volatility3.plugins.windows import filescan
|
||||
from volatility3.framework.renderers import format_hints, conversion
|
||||
from typing import Tuple, List, Union
|
||||
|
||||
vollog = logging.getLogger(__name__)
|
||||
from typing import Tuple, List, Union
|
||||
|
||||
|
||||
class BitStream:
|
||||
@@ -498,7 +503,7 @@ class Prefetch(interfaces.plugins.PluginInterface):
|
||||
bytes_read += len(prefetch_raw)
|
||||
vollog.info(f"Read {bytes_read}")
|
||||
if not bytes_read:
|
||||
vollog.info(f"Prefetch is empty")
|
||||
vollog.info("Prefetch is empty")
|
||||
else:
|
||||
"""Prefetch parsing"""
|
||||
for result in self.parse_prefetch(prefetch_raw):
|
||||
|
||||
Reference in New Issue
Block a user