Skip to content

Commit

Permalink
Fix the incorrect use of super()
Browse files Browse the repository at this point in the history
DIS-2033
  • Loading branch information
pyrco committed Jun 22, 2023
1 parent df7d180 commit 4c71a85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dissect/ntfs/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def __getattr__(self, attr: str) -> AttributeCollection:
if attr in ATTRIBUTE_TYPE_CODE:
return self[ATTRIBUTE_TYPE_CODE[attr]]

return super().__getattribute__(self, attr)
return super().__getattribute__(attr)

def __getitem__(self, item: Union[ATTRIBUTE_TYPE_CODE, int]) -> AttributeCollection:
if isinstance(item, EnumInstance):
Expand Down Expand Up @@ -99,7 +99,7 @@ def __getattr__(self, attr: str) -> Any:
if hasattr(self[0], attr):
return getattr(self[0], attr)

return super().__getattribute__(self, attr)
return super().__getattribute__(attr)

def open(self, allocated: bool = False) -> BinaryIO:
"""Open the data streams on a list of attributes, resident or non-resident.
Expand Down

0 comments on commit 4c71a85

Please sign in to comment.