Files
capa/capa/features/file.py
Ana María Martínez Gómez 3dc3e083a9 Remove args from Features
`args` and `value` are a duplication for most of the features:
`args = [value]`
get rid of `args` and introduce `value` for `Feature` (the main class
instead of the subclasses). This makes the code simpler.

Refactoring the `freeze_serialize` function to not use an array would
simplify the code a bit more, but that needs a bit more of work.
2020-07-07 18:06:30 +02:00

20 lines
523 B
Python

from capa.features import Feature
class Export(Feature):
def __init__(self, value, description=None):
# value is export name
super(Export, self).__init__(value, description)
class Import(Feature):
def __init__(self, value, description=None):
# value is import name
super(Import, self).__init__(value, description)
class Section(Feature):
def __init__(self, value, description=None):
# value is section name
super(Section, self).__init__(value, description)