From 60a70d06ca7d404918bb3547355fd8d80bd0966c Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Thu, 12 Nov 2020 17:02:40 +0000 Subject: [PATCH] PDB: Fix issue #374 --- 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 ec62f1fcc..3624acff6 100644 --- a/volatility/framework/objects/__init__.py +++ b/volatility/framework/objects/__init__.py @@ -438,7 +438,7 @@ class Enumeration(interfaces.objects.ObjectInterface, int): self._vol['base_type'] = base_type def __eq__(self, other): - return super(self) == super(other) and self.choices == other.choices + return super().__eq__(other) and isinstance(other, Enumeration) and self.choices == other.choices @classmethod def _generate_inverse_choices(cls, choices: Dict[str, int]) -> Dict[int, str]: