From f431f519b682d886edcda9b0371f483ee9735c97 Mon Sep 17 00:00:00 2001 From: Dave Lassalle Date: Wed, 26 Mar 2025 08:22:37 -0500 Subject: [PATCH] #1471 - black and ruff fixes --- volatility3/framework/deprecation.py | 3 ++- volatility3/framework/plugins/windows/amcache.py | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/volatility3/framework/deprecation.py b/volatility3/framework/deprecation.py index 5d8087503..ba07743a3 100644 --- a/volatility3/framework/deprecation.py +++ b/volatility3/framework/deprecation.py @@ -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) \ No newline at end of file + return super(replacement_class).__init_subclass__(**kwargs) diff --git a/volatility3/framework/plugins/windows/amcache.py b/volatility3/framework/plugins/windows/amcache.py index bf0f8f8ad..be144be91 100644 --- a/volatility3/framework/plugins/windows/amcache.py +++ b/volatility3/framework/plugins/windows/amcache.py @@ -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)