Core: Fix LGTM recommendations

This is mostly unused imports and unused variables.
This commit is contained in:
Mike Auty
2020-11-04 22:41:39 +00:00
parent 7c75018fc4
commit 0a655d76a8
29 changed files with 68 additions and 103 deletions
@@ -2,16 +2,14 @@
# which is available at https://www.volatilityfoundation.org/license/vsl-v1.0
#
import logging
from typing import Iterable, Callable, Tuple
from volatility.framework import renderers, interfaces, constants, exceptions, contexts
from volatility.framework import renderers, interfaces, contexts
from volatility.framework.configuration import requirements
from volatility.framework.objects import utility
from volatility.framework.renderers import format_hints
from volatility.framework.symbols import mac
from volatility.plugins.mac import lsmod
from volatility.framework.renderers import format_hints
class Kauth_scopes(interfaces.plugins.PluginInterface):
@@ -37,8 +35,8 @@ class Kauth_scopes(interfaces.plugins.PluginInterface):
darwin_symbols: str,
filter_func: Callable[[int], bool] = lambda _: False) -> \
Iterable[Tuple[interfaces.objects.ObjectInterface,
interfaces.objects.ObjectInterface,
interfaces.objects.ObjectInterface]]:
interfaces.objects.ObjectInterface,
interfaces.objects.ObjectInterface]]:
"""
Enumerates the registered kauth scopes and yields each object
Uses smear-safe enumeration API