From 707dee4c3faa9df87694098e95f69e05d3deba30 Mon Sep 17 00:00:00 2001 From: Yacine Elhamer Date: Fri, 25 Aug 2023 09:53:08 +0200 Subject: [PATCH] base_Extractor.py: make `sample_hashes` attribute private --- capa/features/extractors/base_extractor.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/capa/features/extractors/base_extractor.py b/capa/features/extractors/base_extractor.py index 0c73e29f..372d7a34 100644 --- a/capa/features/extractors/base_extractor.py +++ b/capa/features/extractors/base_extractor.py @@ -113,7 +113,7 @@ class StaticFeatureExtractor: # this base class doesn't know what to do with that info, though. # super().__init__() - self.sample_hashes = hashes + self.__sample_hashes = hashes @abc.abstractmethod def get_base_address(self) -> Union[AbsoluteVirtualAddress, capa.features.address._NoAddress]: @@ -131,7 +131,7 @@ class StaticFeatureExtractor: """ fetch the hashes for the sample contained within the extractor. """ - return self.sample_hashes + return self.__sample_hashes @abc.abstractmethod def extract_global_features(self) -> Iterator[Tuple[Feature, Address]]: @@ -361,14 +361,14 @@ class DynamicFeatureExtractor: # this base class doesn't know what to do with that info, though. # super().__init__() - self.sample_hashes = hashes + self.__sample_hashes = hashes @abc.abstractmethod def get_sample_hashes(self) -> SampleHashes: """ fetch the hashes for the sample contained within the extractor. """ - return self.sample_hashes + return self.__sample_hashes @abc.abstractmethod def extract_global_features(self) -> Iterator[Tuple[Feature, Address]]: