Fix up additional imports inconsistent with the coding style.

Note: also remove interfaces_configuration where ever possible
(this is not possible in the interfaces directory itself
because it would cause an import loop).
This commit is contained in:
Mike Auty
2017-08-09 22:32:44 +01:00
parent 8be6869a84
commit d32fc223e2
7 changed files with 29 additions and 31 deletions
+3 -3
View File
@@ -1,7 +1,6 @@
import logging
from volatility.framework import interfaces, validity
from volatility.framework.exceptions import SymbolError
from volatility.framework import interfaces, validity, exceptions
vollog = logging.getLogger(__name__)
@@ -71,7 +70,8 @@ class ReferenceTemplate(interfaces.objects.Template):
"""Referenced symbols must be appropriately resolved before they can provide information such as size
This is because the size request has no context within which to determine the actual symbol structure.
"""
raise SymbolError("Template contains no information about its structure: {}".format(self.vol.type_name))
raise exceptions.SymbolError(
"Template contains no information about its structure: {}".format(self.vol.type_name))
size = property(_unresolved)
replace_child = relative_child_offset = _unresolved