From aa0f6064d5a6882a1f14ec7d2751112bb5d1fdba Mon Sep 17 00:00:00 2001 From: Joran Honig Date: Tue, 10 Jul 2018 19:17:29 +0200 Subject: [PATCH] Use sum_ vs sum --- mythril/laser/ethereum/svm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mythril/laser/ethereum/svm.py b/mythril/laser/ethereum/svm.py index 943065ba..ace985d4 100644 --- a/mythril/laser/ethereum/svm.py +++ b/mythril/laser/ethereum/svm.py @@ -138,5 +138,5 @@ class LaserEVM: @property def coverage(self): - return reduce(lambda sum, val: sum + 1 if val else sum, self.instructions_covered) / float( + return reduce(lambda sum_, val: sum_ + 1 if val else sum_, self.instructions_covered) / float( len(self.instructions_covered)) * 100