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(
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

Loading…
Cancel
Save