mirror of
https://github.com/mandiant/capa.git
synced 2026-02-04 19:12:01 -08:00
Update insn.py
Updated with f strings for enhanced readability.
This commit is contained in:
@@ -31,7 +31,7 @@ class _AccessFeature(Feature, abc.ABC):
|
||||
super().__init__(value, description=description)
|
||||
if access is not None:
|
||||
if access not in VALID_FEATURE_ACCESS:
|
||||
raise ValueError("%s access type %s not valid" % (self.name, access))
|
||||
raise ValueError(f"{self.name} access type {access} not valid")
|
||||
self.access = access
|
||||
|
||||
def __hash__(self):
|
||||
|
||||
Reference in New Issue
Block a user