summaryrefslogtreecommitdiff
path: root/src/flake8/statistics.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/flake8/statistics.py')
-rw-r--r--src/flake8/statistics.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/flake8/statistics.py b/src/flake8/statistics.py
index 45a7eb1..d555df2 100644
--- a/src/flake8/statistics.py
+++ b/src/flake8/statistics.py
@@ -17,7 +17,7 @@ class Statistics(object):
:rtype:
list(str)
"""
- return sorted({key.code for key in self._store.keys()})
+ return sorted({key.code for key in self._store})
def record(self, error):
"""Add the fact that the error was seen in the file.
@@ -55,7 +55,7 @@ class Statistics(object):
:returns:
Generator of instances of :class:`Statistic`
"""
- matching_errors = sorted(key for key in self._store.keys()
+ matching_errors = sorted(key for key in self._store
if key.matches(prefix, filename))
for error_code in matching_errors:
yield self._store[error_code]