mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-11 20:27:38 +02:00
#1471 - black and ruff fixes
This commit is contained in:
@@ -89,6 +89,7 @@ def deprecated_method(
|
||||
|
||||
return decorator
|
||||
|
||||
|
||||
def renamed_class(deprecated_class_name: str, message: str, removal_date: str):
|
||||
"""A decorator for marking classes as being renamed and removed in the future.
|
||||
Callers to this function should explicitly update to use the other plugins instead.
|
||||
@@ -134,4 +135,4 @@ class PluginRenameClass:
|
||||
)
|
||||
else:
|
||||
setattr(cls, attr, value)
|
||||
return super(replacement_class).__init_subclass__(**kwargs)
|
||||
return super(replacement_class).__init_subclass__(**kwargs)
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
# which is available at https://www.volatilityfoundation.org/license/vsl-v1.0
|
||||
#
|
||||
import logging
|
||||
import warnings
|
||||
from volatility3.framework import interfaces, deprecation
|
||||
from volatility3.plugins.windows.registry import amcache
|
||||
|
||||
@@ -13,7 +12,8 @@ class Amcache(
|
||||
interfaces.plugins.PluginInterface,
|
||||
deprecation.PluginRenameClass,
|
||||
replacement_class=amcache.Amcache,
|
||||
removal_date="2025-09-25"):
|
||||
removal_date="2025-09-25",
|
||||
):
|
||||
"""Extract information on executed applications from the AmCache (deprecated)."""
|
||||
|
||||
_required_framework_version = (2, 0, 0)
|
||||
|
||||
Reference in New Issue
Block a user