use list instead of list comprehension

pr/894
Joran Honig 6 years ago
parent b6fcc593c5
commit b99d52e496
  1. 4
      mythril/analysis/modules/multiple_sends.py

@ -60,14 +60,14 @@ def _analyze_state(state: GlobalState):
annotations = cast( annotations = cast(
List[MultipleSendsAnnotation], List[MultipleSendsAnnotation],
[a for a in state.get_annotations(MultipleSendsAnnotation)], list(state.get_annotations(MultipleSendsAnnotation)),
) )
if len(annotations) == 0: if len(annotations) == 0:
log.debug("Creating annotation for state") log.debug("Creating annotation for state")
state.annotate(MultipleSendsAnnotation()) state.annotate(MultipleSendsAnnotation())
annotations = cast( annotations = cast(
List[MultipleSendsAnnotation], List[MultipleSendsAnnotation],
[a for a in state.get_annotations(MultipleSendsAnnotation)], list(state.get_annotations(MultipleSendsAnnotation)),
) )
calls = annotations[0].calls calls = annotations[0].calls

Loading…
Cancel
Save