From c3a52118e583acde4b51b0ca99befe6f215e9ef1 Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Mon, 28 Sep 2015 09:27:54 +0100 Subject: [PATCH] Minor tidying. --- volatility/cli/__init__.py | 6 +++--- volatility/framework/contexts/__init__.py | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/volatility/cli/__init__.py b/volatility/cli/__init__.py index cd25fe67a..5374d094f 100644 --- a/volatility/cli/__init__.py +++ b/volatility/cli/__init__.py @@ -38,7 +38,8 @@ class CommandLine(object): # Run the argparser parser.parse_args() - # Validate the requirement + # Generate the layers from the arguments + # Construct the plugin runner = plugin(context) @@ -67,8 +68,7 @@ class CommandLine(object): # Choose an appropriate LayerFactory (add layer to the req.name so we don't blat the requirement itself namespace = configuration.namespace_join([plugin.__name__, req.name + "_layer"]) factory = self.construct_translation_layer_factory(namespace, req) - facreqs = factory.requirements() - for facreq in facreqs: + for facreq in factory.requirements(): context.config.add_item(facreq, namespace = namespace) else: context.config.add_item(req, plugin.__name__) diff --git a/volatility/framework/contexts/__init__.py b/volatility/framework/contexts/__init__.py index c96489bb1..6ea9b6b81 100644 --- a/volatility/framework/contexts/__init__.py +++ b/volatility/framework/contexts/__init__.py @@ -31,7 +31,6 @@ class LayerFactory(validity.ValidityRoutines, list): return self._name def __setitem__(self, key, value): - print("Running setitem") self._class_check(value, ContextModifierInterface) super(LayerFactory, self).__setitem__(key, value)