summaryrefslogtreecommitdiff
path: root/src/flake8/api
diff options
context:
space:
mode:
Diffstat (limited to 'src/flake8/api')
-rw-r--r--src/flake8/api/legacy.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/flake8/api/legacy.py b/src/flake8/api/legacy.py
index 7923698..f046b5c 100644
--- a/src/flake8/api/legacy.py
+++ b/src/flake8/api/legacy.py
@@ -60,7 +60,7 @@ def get_style_guide(**kwargs):
return StyleGuide(application)
-class StyleGuide(object):
+class StyleGuide:
"""Public facing object that mimic's Flake8 2.0's StyleGuide.
.. note::
@@ -170,7 +170,7 @@ class StyleGuide(object):
return self.check_files([filename])
-class Report(object):
+class Report:
"""Public facing object that mimic's Flake8 2.0's API.
.. note::
@@ -210,6 +210,6 @@ class Report(object):
list
"""
return [
- "{} {} {}".format(s.count, s.error_code, s.message)
+ f"{s.count} {s.error_code} {s.message}"
for s in self._stats.statistics_for(violation)
]