From 282eaa7f00daa26b3f92c83f197e12b3dddb34c2 Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Mon, 7 Nov 2016 12:26:06 +0000 Subject: [PATCH] Improve/remove unnecessary imports. --- development/__init__.py | 1 - volatility/framework/__init__.py | 2 -- volatility/framework/symbols/__init__.py | 3 +-- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/development/__init__.py b/development/__init__.py index db13a1bff..e69de29bb 100644 --- a/development/__init__.py +++ b/development/__init__.py @@ -1 +0,0 @@ -from contrib import * diff --git a/volatility/framework/__init__.py b/volatility/framework/__init__.py index 5c9267310..6a12c87bb 100644 --- a/volatility/framework/__init__.py +++ b/volatility/framework/__init__.py @@ -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 diff --git a/volatility/framework/symbols/__init__.py b/volatility/framework/symbols/__init__.py index 41d69207e..b78def106 100644 --- a/volatility/framework/symbols/__init__.py +++ b/volatility/framework/symbols/__init__.py @@ -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