diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2015-10-26 10:52:58 +0000 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2015-10-26 10:52:58 +0000 |
commit | 60ca6a05b00dae33c0210df4e8f7c89c63d459b3 (patch) | |
tree | fcd0bc5a1c42321c6c56c4ee765ce3fe58d70df5 | |
parent | 5e2afbc9ef97035e94b498846cd8b611d82b9f12 (diff) | |
download | pylint-60ca6a05b00dae33c0210df4e8f7c89c63d459b3.tar.gz |
Remove the list parantheses for a sum call.
-rw-r--r-- | pylint/checkers/similar.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pylint/checkers/similar.py b/pylint/checkers/similar.py index e500d2c..859a04b 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(): |