From bca8dc486ddd10cc63ab5f83d2e0c6a8b98ba9c3 Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Tue, 9 Feb 2016 10:14:13 +0000 Subject: [PATCH] Allow sequences rather than just lists for TreeGrid yields. --- volatility/framework/renderers/__init__.py | 2 +- volatility/framework/renderers/text.py | 0 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 volatility/framework/renderers/text.py diff --git a/volatility/framework/renderers/__init__.py b/volatility/framework/renderers/__init__.py index fdf78cd2d..1f77e9c4d 100644 --- a/volatility/framework/renderers/__init__.py +++ b/volatility/framework/renderers/__init__.py @@ -30,7 +30,7 @@ class TreeNode(interfaces.renderers.TreeNode): def _validate_values(self, values): """A function for raising exceptions if a given set of values is invalid according to the column properties.""" - if not (isinstance(values, list) and len(values) == len(self._treegrid.columns)): + if not (isinstance(values, collections.Sequence) and len(values) == len(self._treegrid.columns)): raise TypeError( "Values must be a list of objects made up of simple types and number the same as the columns") for index in range(len(self._treegrid.columns)): diff --git a/volatility/framework/renderers/text.py b/volatility/framework/renderers/text.py new file mode 100644 index 000000000..e69de29bb