From df8babd0dd1827b2435800dc66956ccb2d449c4a Mon Sep 17 00:00:00 2001 From: Claudiu Popa Date: Mon, 26 Oct 2015 10:52:58 +0000 Subject: [PATCH] Remove the list parantheses for a sum call. --- pylint/checkers/similar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pylint/checkers/similar.py b/pylint/checkers/similar.py index e500d2ccc..859a04be1 100644 --- a/pylint/checkers/similar.py +++ b/pylint/checkers/similar.py @@ -305,7 +305,7 @@ class SimilarChecker(BaseChecker, Similar): def close(self): """compute and display similarities on closing (i.e. end of parsing)""" - total = sum([len(lineset) for lineset in self.linesets]) + total = sum(len(lineset) for lineset in self.linesets) duplicated = 0 stats = self.stats for num, couples in self._compute_sims():