diff options
author | Michael Weiser <michael.weiser@gmx.de> | 2019-02-19 20:53:34 +0000 |
---|---|---|
committer | Michael Weiser <michael.weiser@gmx.de> | 2019-02-19 20:53:34 +0000 |
commit | 282505ffd8426c15f20837f23fa4f5c20b1633e2 (patch) | |
tree | 9a6f88363a0f502fd2a0618cbbd515003a114417 /peekaboo | |
parent | fac5976a42de898551078bc6a9f3c9156ee4b0ed (diff) |
Retire rule_results list from sample
Turns out, nobody is using the __rule_results list of Sample any more.
So we can retire it.
Diffstat (limited to 'peekaboo')
-rw-r--r-- | peekaboo/sample.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/peekaboo/sample.py b/peekaboo/sample.py index 9bc02d9..8533f82 100644 --- a/peekaboo/sample.py +++ b/peekaboo/sample.py @@ -93,7 +93,6 @@ class Sample(object): self.__cuckoo_report = None self.__done = False self.__status_change = status_change - self.__rule_results = [] self.__result = Result.unchecked self.__reason = None self.__report = [] # Peekaboo's own report @@ -297,7 +296,7 @@ class Sample(object): this to the report and updates the overall analysis result (so far). """ logger.debug('Adding rule result %s' % str(res)) - self.__rule_results.append(res) + self.__report.append(_("File \"%s\": %s") % (self.__filename, str(res))) logger.debug("Current overall result: %s, new rule result: %s", self.__result, res.result) @@ -306,9 +305,6 @@ class Sample(object): self.__result = res.result self.__reason = res.reason - # also append a report message right away - self.__report.append(_("File \"%s\": %s") % (self.__filename, str(res))) - def dump_processing_info(self): """ Saves the Cuckoo report as HTML + JSON |