From 5e37080c14b8ffc9e5ccff0499e4290fd32709e0 Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Sun, 30 Jun 2019 13:35:13 +0100 Subject: [PATCH] Fix up misnamed get_enum/has_enum. --- volatility/framework/contexts/__init__.py | 4 ++-- volatility/framework/interfaces/context.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/volatility/framework/contexts/__init__.py b/volatility/framework/contexts/__init__.py index c58f8cddb..d065c591d 100644 --- a/volatility/framework/contexts/__init__.py +++ b/volatility/framework/contexts/__init__.py @@ -201,10 +201,10 @@ class Module(interfaces.context.ModuleInterface): get_symbol = get_module_wrapper('get_symbol') get_type = get_module_wrapper('get_type') - get_enum = get_module_wrapper('get_enum') + get_enumeration = get_module_wrapper('get_enumeration') has_symbol = get_module_wrapper('has_symbol') has_type = get_module_wrapper('has_type') - has_enum = get_module_wrapper('has_enum') + has_enumeration = get_module_wrapper('has_enumeration') class SizedModule(Module): diff --git a/volatility/framework/interfaces/context.py b/volatility/framework/interfaces/context.py index e424138d0..f7cc027bd 100644 --- a/volatility/framework/interfaces/context.py +++ b/volatility/framework/interfaces/context.py @@ -153,7 +153,7 @@ class ModuleInterface(metaclass = ABCMeta): def get_symbol(self, name: str) -> 'interfaces.symbols.SymbolInterface': """Returns a symbol from the module""" - def get_enum(self, name: str) -> 'interfaces.symbols.SymbolInterface': + def get_enumeration(self, name: str) -> 'interfaces.symbols.SymbolInterface': """Returns an enumeration from the module""" def has_type(self, name: str) -> bool: @@ -162,5 +162,5 @@ class ModuleInterface(metaclass = ABCMeta): def has_symbol(self, name: str) -> bool: """Determines whether a symbol is present in the module""" - def has_enum(self, name: str) -> bool: + def has_enumeration(self, name: str) -> bool: """Determines whether an enumeration is present in the module"""