mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-06 01:37:39 +02:00
Core: Fix LGTM recommendations
This is mostly unused imports and unused variables.
This commit is contained in:
@@ -5,7 +5,6 @@
|
||||
import collections
|
||||
import logging
|
||||
import struct
|
||||
from collections import abc
|
||||
from typing import Any, ClassVar, Dict, List, Iterable, Optional, Tuple, Type, Union as TUnion, overload
|
||||
|
||||
from volatility.framework import interfaces, constants
|
||||
@@ -516,7 +515,7 @@ class Enumeration(interfaces.objects.ObjectInterface, int):
|
||||
template.update_vol(base_type = new_child)
|
||||
|
||||
|
||||
class Array(interfaces.objects.ObjectInterface, abc.Sequence):
|
||||
class Array(interfaces.objects.ObjectInterface, collections.abc.Sequence):
|
||||
"""Object which can contain a fixed number of an object type."""
|
||||
|
||||
def __init__(self,
|
||||
@@ -695,7 +694,7 @@ class AggregateType(interfaces.objects.ObjectInterface):
|
||||
if isinstance(cls, agg_type):
|
||||
agg_name = agg_type.__name__
|
||||
|
||||
assert isinstance(members, abc.Mapping)
|
||||
assert isinstance(members, collections.abc.Mapping)
|
||||
"{} members parameter must be a mapping: {}".format(agg_name, type(members))
|
||||
assert all([(isinstance(member, tuple) and len(member) == 2) for member in members.values()])
|
||||
"{} members must be a tuple of relative_offsets and templates".format(agg_name)
|
||||
|
||||
Reference in New Issue
Block a user