From eaeef59583f38532e91b2b0cb71ce5bb0b6184d8 Mon Sep 17 00:00:00 2001 From: AG <98327736+ggold7046@users.noreply.github.com> Date: Fri, 10 Mar 2023 13:03:04 +0530 Subject: [PATCH] Update insn.py Updated with f strings for enhanced readability. --- capa/features/insn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/capa/features/insn.py b/capa/features/insn.py index 1f1c0171..030784fe 100644 --- a/capa/features/insn.py +++ b/capa/features/insn.py @@ -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):