mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-08-17 20:35:40 +02:00
Improve/remove unnecessary imports.
This commit is contained in:
@@ -1 +0,0 @@
|
||||
from contrib import *
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user