mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-08-29 11:19:40 +02:00
Removes collections.abc.Iterable superclass
Per @gcmoreira this is the correct fix vs the one previously proposed, since self.vol.member_name cannot be used as the member name to iterate this type.
This commit is contained in:
@@ -1004,7 +1004,7 @@ class list_head(objects.StructType, collections.abc.Iterable):
|
||||
return self.to_list(self.vol.parent.vol.type_name, self.vol.member_name)
|
||||
|
||||
|
||||
class hlist_head(objects.StructType, collections.abc.Iterable):
|
||||
class hlist_head(objects.StructType):
|
||||
def to_list(
|
||||
self,
|
||||
symbol_type: str,
|
||||
@@ -1037,9 +1037,6 @@ class hlist_head(objects.StructType, collections.abc.Iterable):
|
||||
|
||||
current = current.next
|
||||
|
||||
def __iter__(self) -> Iterator[interfaces.objects.ObjectInterface]:
|
||||
return self.to_list(self.vol.parent.vol.type_name, self.vol.member_name)
|
||||
|
||||
|
||||
class files_struct(objects.StructType):
|
||||
def get_fds(self) -> interfaces.objects.ObjectInterface:
|
||||
|
||||
Reference in New Issue
Block a user