Skip to content

Commit 4c2d2f9

Browse files
committed
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.
1 parent 388a3e6 commit 4c2d2f9

File tree

1 file changed

+1
-4
lines changed
  • volatility3/framework/symbols/linux/extensions

1 file changed

+1
-4
lines changed

volatility3/framework/symbols/linux/extensions/__init__.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,7 +1004,7 @@ def __iter__(self) -> Iterator[interfaces.objects.ObjectInterface]:
10041004
return self.to_list(self.vol.parent.vol.type_name, self.vol.member_name)
10051005

10061006

1007-
class hlist_head(objects.StructType, collections.abc.Iterable):
1007+
class hlist_head(objects.StructType):
10081008
def to_list(
10091009
self,
10101010
symbol_type: str,
@@ -1037,9 +1037,6 @@ def to_list(
10371037

10381038
current = current.next
10391039

1040-
def __iter__(self) -> Iterator[interfaces.objects.ObjectInterface]:
1041-
return self.to_list(self.vol.parent.vol.type_name, self.vol.member_name)
1042-
10431040

10441041
class files_struct(objects.StructType):
10451042
def get_fds(self) -> interfaces.objects.ObjectInterface:

0 commit comments

Comments
 (0)