diff --git a/volatility/framework/interfaces/context.py b/volatility/framework/interfaces/context.py index b5637195c..a4e7544c2 100644 --- a/volatility/framework/interfaces/context.py +++ b/volatility/framework/interfaces/context.py @@ -5,7 +5,7 @@ of symbols that can be used to interpret data in a layer. The context also prov notably the object constructor function, `object`, which will construct a symbol on a layer at a particular offset. """ import copy -from abc import ABCMeta, abstractmethod, abstractproperty +from abc import ABCMeta, abstractmethod from volatility.framework import validity @@ -21,11 +21,13 @@ class ContextInterface(object, metaclass = ABCMeta): # ## Symbol Space Functions - @abstractproperty + @property + @abstractmethod def config(self): """Returns the configuration object for this context""" - @abstractproperty + @property + @abstractmethod def symbol_space(self): """Returns the symbol_space for the context @@ -34,7 +36,8 @@ class ContextInterface(object, metaclass = ABCMeta): # ## Memory Functions - @abstractproperty + @property + @abstractmethod def memory(self): """Returns the memory object for the context""" raise NotImplementedError("Memory has not been implemented.") diff --git a/volatility/framework/interfaces/layers.py b/volatility/framework/interfaces/layers.py index db9cbfeff..3d98c52ce 100644 --- a/volatility/framework/interfaces/layers.py +++ b/volatility/framework/interfaces/layers.py @@ -6,7 +6,7 @@ import functools import logging import math import multiprocessing -from abc import ABCMeta, abstractmethod, abstractproperty +from abc import ABCMeta, abstractmethod from volatility.framework import constants, exceptions, validity from volatility.framework.interfaces import configuration, context @@ -109,11 +109,13 @@ class DataLayerInterface(configuration.ConfigurableInterface, validity.ValidityR """Returns the layer name""" return self._name - @abstractproperty + @property + @abstractmethod def maximum_address(self): """Returns the maximum valid address of the space""" - @abstractproperty + @property + @abstractmethod def minimum_address(self): """Returns the minimum valid address of the space"""