From b99d52e49642c270e209ab3c279839e171156069 Mon Sep 17 00:00:00 2001 From: Joran Honig Date: Mon, 4 Feb 2019 07:29:37 +0100 Subject: [PATCH] use list instead of list comprehension --- mythril/analysis/modules/multiple_sends.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mythril/analysis/modules/multiple_sends.py b/mythril/analysis/modules/multiple_sends.py index fbe0c03b..a4c650da 100644 --- a/mythril/analysis/modules/multiple_sends.py +++ b/mythril/analysis/modules/multiple_sends.py @@ -60,14 +60,14 @@ def _analyze_state(state: GlobalState): annotations = cast( List[MultipleSendsAnnotation], - [a for a in state.get_annotations(MultipleSendsAnnotation)], + list(state.get_annotations(MultipleSendsAnnotation)), ) if len(annotations) == 0: log.debug("Creating annotation for state") state.annotate(MultipleSendsAnnotation()) annotations = cast( List[MultipleSendsAnnotation], - [a for a in state.get_annotations(MultipleSendsAnnotation)], + list(state.get_annotations(MultipleSendsAnnotation)), ) calls = annotations[0].calls