

def init(self):
    raw_signatures.one_of_many = None
    if self.search_for_opcodes:
        self.magic_files = [self.config.settings.user.binarch, self.config.settings.system.binarch]
    if (((not self.magic_files) and (not self.raw_bytes)) or self.explicit_signature_scan):
        self.magic_files += (self.config.settings.user.magic + self.config.settings.system.magic)
    self.magic = binwalk.core.magic.Magic(include=self.include_filters, exclude=self.exclude_filters, invalid=self.show_invalid)
    if self.raw_bytes:
        raw_signatures = []
        for raw_bytes in self.raw_bytes:
            raw_signatures.append(('0    string    %s    %s' % (raw_bytes, raw_bytes)))
        binwalk.core.common.debug(('Parsing raw signatures: %s' % str(raw_signatures)))
        self.magic.parse(raw_signatures)
    if self.magic_files:
        binwalk.core.common.debug(('Loading magic files: %s' % str(self.magic_files)))
        for f in self.magic_files:
            self.magic.load(f)
    self.VERBOSE = ['Signatures:', len(self.magic.signatures)]

dataset/ETHPy150Open devttys0/binwalk/src/binwalk/modules/signature.py Signature.init/VarMisuse@10/11 `self`->`raw_signatures`