Improve/remove unnecessary imports.

This commit is contained in:
Mike Auty
2016-11-07 12:26:06 +00:00
parent 62fb752c82
commit 282eaa7f00
3 changed files with 1 additions and 5 deletions
-1
View File
@@ -1 +0,0 @@
from contrib import *
-2
View File
@@ -84,5 +84,3 @@ def import_files(base_module):
required_python_version = (3, 4)
if sys.version_info.major != required_python_version[0] or sys.version_info.minor < required_python_version[1]:
raise RuntimeError("Volatility framework requires python version {}.{} or greater".format(required_python_version))
from volatility.framework import interfaces, symbols, layers, contexts, configuration
+1 -2
View File
@@ -7,7 +7,6 @@ Created on 7 Feb 2013
import collections
import collections.abc
import logging
import warnings
from volatility.framework import constants, exceptions, interfaces, objects
from volatility.framework.symbols import native, vtypes, windows
@@ -66,7 +65,7 @@ class SymbolSpace(collections.abc.Mapping):
@natives.setter
def natives(self, native_types):
if native_types is not None:
warnings.warn(
vollog.warning(
"Resetting the native type can cause have drastic effects on memory analysis using this space")
self._native_types = native_types