mirror of
https://fuchsia.googlesource.com/third_party/github.com/pylint-dev/pylint
synced 2024-09-21 07:58:04 +00:00
Remove the list parantheses for a sum call.
This commit is contained in:
parent
2c8c8de6ca
commit
df8babd0dd
|
@ -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():
|
||||
|
|
Loading…
Reference in New Issue
Block a user