From 4c71a851bd4026be4d393afaa6766ee83c257cd2 Mon Sep 17 00:00:00 2001 From: pyrco <105293448+pyrco@users.noreply.github.com> Date: Thu, 22 Jun 2023 16:23:59 +0200 Subject: [PATCH] Fix the incorrect use of super() DIS-2033 --- dissect/ntfs/util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dissect/ntfs/util.py b/dissect/ntfs/util.py index f29c019..6c5434f 100644 --- a/dissect/ntfs/util.py +++ b/dissect/ntfs/util.py @@ -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): @@ -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.