From 0c689de2440768f071be1d6f01fd2a9d50bde6fa Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Wed, 26 Apr 2017 14:57:40 +0100 Subject: [PATCH] Fix up numerous silly mistakes. --- volatility/framework/contexts/__init__.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/volatility/framework/contexts/__init__.py b/volatility/framework/contexts/__init__.py index 2e8a6cf8e..7797ebee0 100644 --- a/volatility/framework/contexts/__init__.py +++ b/volatility/framework/contexts/__init__.py @@ -4,7 +4,7 @@ This has been made an object to allow quick swapping and changing of contexts, t to act on multiple different contexts without them interfering eith each other. """ -from volatility.framework import constants, interfaces, objects, symbols +from volatility.framework import constants, interfaces, symbols from volatility.framework.interfaces.configuration import HierarchicalDict __author__ = 'mike' @@ -90,7 +90,7 @@ class Context(interfaces.context.ContextInterface): :rtype: :py:class:`volatility.framework.interfaces.objects.ObjectInterface` """ object_template = symbol - if not isinstance(symbol, objects.templates.Template): + if not isinstance(symbol, interfaces.objects.Template): object_template = self._symbol_space.get_type(symbol) object_template = object_template.clone() object_template.update_vol(**arguments) @@ -136,7 +136,6 @@ class Module(interfaces.context.Module): type_arg = self._module_name + constants.BANG + type_name return self._context.object(type_arg, self._layer_name, offset, **kwargs) - @staticmethod def wrap(method): """Returns a symbol using the symbol_table of the Module"""