From a248bdc804fbd6a2ce3387eedc067eeea2fa9e83 Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Tue, 17 Sep 2019 18:15:05 +0100 Subject: [PATCH] Fix up old code and docstring indent issue. --- volatility/framework/interfaces/objects.py | 2 +- volatility/framework/layers/scanners/multiregexp.py | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/volatility/framework/interfaces/objects.py b/volatility/framework/interfaces/objects.py index 5eb5c1a1e..052d1b011 100644 --- a/volatility/framework/interfaces/objects.py +++ b/volatility/framework/interfaces/objects.py @@ -154,7 +154,7 @@ class ObjectInterface(metaclass = ABCMeta): current object inhabits. .. note:: If new type name does not include a symbol table, the - symbol table for the current object is used + symbol table for the current object is used """ # TODO: Carefully consider the implications of casting and how it should work if constants.BANG not in new_type_name: diff --git a/volatility/framework/layers/scanners/multiregexp.py b/volatility/framework/layers/scanners/multiregexp.py index 52fa2673c..1d7298a75 100644 --- a/volatility/framework/layers/scanners/multiregexp.py +++ b/volatility/framework/layers/scanners/multiregexp.py @@ -29,9 +29,3 @@ class MultiRegexp(object): raise ValueError("MultiRegexp cannot be used with an empty set of search strings") for match in re.finditer(self._regex, haystack): yield (match.start(0), match.group()) - - -if __name__ == '__main__': - import multistring_testrig - - multistring_testrig.tester(MultiRegexp())