Remove the list parantheses for a sum call.

This commit is contained in:
Claudiu Popa 2015-10-26 10:52:58 +00:00
parent 2c8c8de6ca
commit df8babd0dd

View File

@ -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():