fix: base_extractor.py: __metaclass__ is Python 2 syntax, ignored in Py3

Closes #3024
This commit is contained in:
Willi Ballenthin
2026-04-22 09:44:23 +03:00
committed by Willi Ballenthin
parent 58b7a9fc55
commit c7d3de8bf8
2 changed files with 4 additions and 6 deletions

View File

@@ -34,6 +34,8 @@
- fix: elffile.py: get_base_address returns None instead of NO_ADDRESS @williballenthin #3023
- fix: base_extractor.py: __metaclass__ is Python 2 syntax, ignored in Py3 @williballenthin #3024
### capa Explorer Web
### capa Explorer IDA Pro plugin

View File

@@ -91,7 +91,7 @@ class InsnHandle:
inner: Any
class StaticFeatureExtractor:
class StaticFeatureExtractor(abc.ABC):
"""
StaticFeatureExtractor defines the interface for fetching features from a
sample without running it; extractors that rely on the execution trace of
@@ -109,8 +109,6 @@ class StaticFeatureExtractor:
This class is not instantiated directly; it is the base class for other implementations.
"""
__metaclass__ = abc.ABCMeta
def __init__(self, hashes: SampleHashes):
#
# note: a subclass should define ctor parameters for its own use.
@@ -359,7 +357,7 @@ class CallHandle:
inner: Any
class DynamicFeatureExtractor:
class DynamicFeatureExtractor(abc.ABC):
"""
DynamicFeatureExtractor defines the interface for fetching features from a
sandbox' analysis of a sample; extractors that rely on statically analyzing
@@ -372,8 +370,6 @@ class DynamicFeatureExtractor:
This class is not instantiated directly; it is the base class for other implementations.
"""
__metaclass__ = abc.ABCMeta
def __init__(self, hashes: SampleHashes):
#
# note: a subclass should define ctor parameters for its own use.