mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-08-17 20:35:40 +02:00
Rename the imported context interface to match other examples in the code.
This commit is contained in:
@@ -6,7 +6,7 @@ import collections.abc
|
||||
from abc import ABCMeta, abstractmethod
|
||||
|
||||
from volatility.framework import constants, validity
|
||||
from volatility.framework.interfaces import context as context_module
|
||||
from volatility.framework.interfaces import context as interfaces_context
|
||||
|
||||
|
||||
class ReadOnlyMapping(validity.ValidityRoutines, collections.abc.Mapping):
|
||||
@@ -64,7 +64,7 @@ class ObjectInterface(validity.ValidityRoutines, metaclass = ABCMeta):
|
||||
# Since objects are likely to be instantiated often,
|
||||
# we're only checking that context, offset and parent
|
||||
# Everything else may be wrong, but that will get caught later on
|
||||
self._check_type(context, context_module.ContextInterface)
|
||||
self._check_type(context, interfaces_context.ContextInterface)
|
||||
self._check_type(object_info, ObjectInformation)
|
||||
|
||||
# Add an empty dictionary at the start to allow objects to add their own data to the vol object
|
||||
|
||||
Reference in New Issue
Block a user