From b04fd7c9bd0dcc9b01d71efb73cc66485c1bb895 Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Tue, 28 Jul 2020 22:13:40 +0100 Subject: [PATCH] Objects: Update enumeration method to is_valid_choice --- volatility/framework/objects/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/volatility/framework/objects/__init__.py b/volatility/framework/objects/__init__.py index 3d3fcd5b9..04101c92d 100644 --- a/volatility/framework/objects/__init__.py +++ b/volatility/framework/objects/__init__.py @@ -467,7 +467,7 @@ class Enumeration(interfaces.objects.ObjectInterface, int): return self._vol['choices'] @property - def legal(self) -> bool: + def is_valid_choice(self) -> bool: """Returns whether the value for the object is a valid choice""" return self in self.choices.values()