Refactor TextRenderer to QuickTextRenderer to ensure we don't forget that the output is speedy not nicely formatted.

This commit is contained in:
Mike Auty
2017-01-22 14:17:19 +00:00
parent a2eb60ed39
commit 96c414fb5f
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -20,7 +20,7 @@ from volatility.framework import automagic
from volatility.framework import constants, contexts, interfaces
from volatility.framework.configuration import requirements
from volatility.framework.interfaces.configuration import HierarchicalDict
from volatility.framework.renderers.text import TextRenderer
from volatility.framework.renderers.text import QuickTextRenderer
__author__ = 'mike'
@@ -139,7 +139,7 @@ class CommandLine(object):
json.dump(dict(constructed.build_configuration()), f, sort_keys = True, indent = 2)
# Construct and run the plugin
TextRenderer().render(constructed.run())
QuickTextRenderer().render(constructed.run())
def populate_requirements_argparse(self, parser, configurable):
"""Adds the plugin's simple requirements to the provided parser
+1 -1
View File
@@ -24,7 +24,7 @@ def hex_bytes_as_text(value):
return output
class TextRenderer(interfaces.renderers.Renderer):
class QuickTextRenderer(interfaces.renderers.Renderer):
type_renderers = {format_hints.Hex: lambda x: "{:x}".format(x),
format_hints.HexBytes: hex_bytes_as_text,
bytes: lambda x: x.decode("utf-8"),