mirror of
https://github.com/mandiant/capa.git
synced 2026-01-08 03:11:05 -08:00
@@ -71,19 +71,6 @@ class Characteristic(Feature):
|
||||
def __init__(self, value, description=None):
|
||||
super(Characteristic, self).__init__(value, description)
|
||||
|
||||
def freeze_serialize(self):
|
||||
# in an older version of capa, characteristics could theoretically match non-existence (value=False).
|
||||
# but we found this was never used (and better expressed with `not: characteristic: ...`).
|
||||
# this was represented using an additional parameter for Characteristic.
|
||||
# its been removed, but we keep it around in the freeze format to maintain backwards compatibility.
|
||||
# this value is ignored, however.
|
||||
return (self.__class__.__name__, [self.value, True])
|
||||
|
||||
@classmethod
|
||||
def freeze_deserialize(cls, args):
|
||||
# see above. we ignore the second element in the 2-tuple here.
|
||||
return cls(args[0])
|
||||
|
||||
|
||||
class String(Feature):
|
||||
def __init__(self, value, description=None):
|
||||
|
||||
Reference in New Issue
Block a user