From d04414fe08991097636eec7ea8d795267cadc66d Mon Sep 17 00:00:00 2001 From: Matteo Campinoti Date: Mon, 30 Oct 2023 11:36:44 +0100 Subject: [PATCH] models:file - fix typo --- acacore/models/file.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/acacore/models/file.py b/acacore/models/file.py index 3a26338..6f83319 100644 --- a/acacore/models/file.py +++ b/acacore/models/file.py @@ -66,18 +66,18 @@ def identify(self, sf: Siegfried) -> SiegfriedFile: """ return sf.identify(self.get_absolute_path()).files[0] - def re_identify_with_aca(self, costum_sigs: list[CustomSignature]) -> None: + def re_identify_with_aca(self, custom_sigs: list[CustomSignature]) -> None: """Uses the BOF and EOF to try to determine a ACAUID for the file. - The costum_sigs list should be found on the `reference_files` repo. + The custom_sigs list should be found on the `reference_files` repo. If no match can be found, the method does nothing. Args: - costum_sigs: A list of the costum_signatures that the file should be checked against + custom_sigs: A list of the custom_signatures that the file should be checked against """ bof, eof = self.get_bof_and_eof() # We have to go through all of the signatures in order to check their BOF en EOF with the file. - for sig in costum_sigs: + for sig in custom_sigs: if sig.bof and sig.eof: bof_pattern = re.compile(sig.bof) eof_pattern = re.compile(sig.eof)