Update capa/features/file.py w/ PR changes

Co-authored-by: Willi Ballenthin <willi.ballenthin@gmail.com>
This commit is contained in:
mike-hunhoff
2021-06-08 10:59:42 -06:00
committed by GitHub
parent 84d2f9f324
commit fd0f87ca6e

View File

@@ -33,4 +33,6 @@ class FunctionName(Feature):
def __init__(self, name, description=None):
# value is function name
super(FunctionName, self).__init__(name, description=description)
# override the name property set by `capa.features.Feature`
# that would be `functionname` (note missing dash)
self.name = "function-name"