mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-08 10:47:38 +02:00
Objects: Update enumeration method to is_valid_choice
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user