Skip to content

Commit

Permalink
Removes collections.abc.Iterable superclass
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dgmcdona committed Oct 24, 2024
1 parent 388a3e6 commit 4c2d2f9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions volatility3/framework/symbols/linux/extensions/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1004,7 +1004,7 @@ def __iter__(self) -> Iterator[interfaces.objects.ObjectInterface]:
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,
Expand Down Expand Up @@ -1037,9 +1037,6 @@ def to_list(

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:
Expand Down

0 comments on commit 4c2d2f9

Please sign in to comment.