From 1af85d628fd2f8879e54bb5b7d99dad47017d501 Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Sun, 1 Jan 2017 02:14:53 +0000 Subject: [PATCH] Remove the pointless class/instance variable. --- volatility/framework/automagic/stacker.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/volatility/framework/automagic/stacker.py b/volatility/framework/automagic/stacker.py index 1d890b0c2..e34bb9c7d 100644 --- a/volatility/framework/automagic/stacker.py +++ b/volatility/framework/automagic/stacker.py @@ -34,7 +34,6 @@ class LayerStacker(interfaces.automagic.AutomagicInterface): # Most important automagic, must happen first! priority = 10 page_map_offset = None - location = None def __call__(self, context, config_path, requirement, progress_callback = None): """Runs the automagic over the configurable""" @@ -49,12 +48,12 @@ class LayerStacker(interfaces.automagic.AutomagicInterface): location = self.config["single_location"] self._check_type(location, str) self._check_type(requirement, interfaces.configuration.RequirementInterface) - self.location = parse.urlparse(location) + location = parse.urlparse(location) # Setup the local copy of the resource self.local_store = None - if self.location.scheme == "file": - self.local_store = self.location.path + if location.scheme == "file": + self.local_store = location.path new_context = context.clone() current_layer_name = context.memory.free_layer_name("FileLayer")